From 30433bc0309d61599e67b584563acc4ead977282 Mon Sep 17 00:00:00 2001 From: Hidde L Date: Fri, 9 Aug 2024 15:05:17 +0200 Subject: [PATCH] Remove does_set (because it will be implemented in doe-suite) Make DOES_RESULTS_DIR public --- Makefile | 6 ------ doespy/doespy/util.py | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index c62ef5d2..c70c0a87 100644 --- a/Makefile +++ b/Makefile @@ -379,9 +379,3 @@ docs-build: install docs: docs-build @open docs/build/html/index.html - - -## Checks does_config_dir is set -does_set: - @if [ ! -d "$(does_config_dir)" ]; then echo "DOES_PROJECT_DIR is not set, please set environment variables"; exit 1; fi - diff --git a/doespy/doespy/util.py b/doespy/doespy/util.py index 2854d6a0..8598cc68 100644 --- a/doespy/doespy/util.py +++ b/doespy/doespy/util.py @@ -94,8 +94,8 @@ def get_suite_roles_dir(): def get_results_dir(): prj_dir = get_project_dir() - results_dir_name = os.environ.get("DOES_RESULTS_DIR", "doe-suite-results") - results_dir = os.path.join(prj_dir, results_dir_name) + results_dir_name = "doe-suite-results" + results_dir = os.environ.get("DOES_RESULTS_DIR", os.path.join(prj_dir, results_dir_name)) return results_dir