From e3ed2a025a97f0c7f42d866ea39355f4834a58e5 Mon Sep 17 00:00:00 2001 From: Ruben Gonzalez Date: Fri, 26 Apr 2024 18:42:05 +0200 Subject: [PATCH] fixup! uninstalled: Using correct test_suites_dir with installed in a python venv --- fluster/main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fluster/main.py b/fluster/main.py index 8a7071b0..80aeb8be 100644 --- a/fluster/main.py +++ b/fluster/main.py @@ -115,10 +115,8 @@ def _get_installed_dirs(self) -> Tuple[str, str]: break else: test_suites_dir = os.path.join(user_data_dir, TEST_SUITES_DIR) - if not os.path.exists(test_suites_dir) and "VIRTUAL_ENV" in os.environ: - test_suites_dir = os.path.join( - os.environ["VIRTUAL_ENV"], "share", APPNAME - ) + if not os.path.exists(test_suites_dir): + test_suites_dir = os.path.join(sys.prefix, "share", APPNAME) resources_dir = os.path.join(user_data_dir, RESOURCES_DIR)