From 3f3e1415c9be0f3b1c5eada55238747d92833829 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Sat, 2 Mar 2019 09:03:21 +1300 Subject: [PATCH] change method of writing to system PATH. Fixes #830 --- core/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/__init__.py b/core/__init__.py index 8d638dc4..2f4645b2 100644 --- a/core/__init__.py +++ b/core/__init__.py @@ -1020,7 +1020,7 @@ def configure_utility_locations(): else: if SYS_PATH: - sys.path.append(SYS_PATH) + os.environ['PATH'] += ':'+SYS_PATH try: SEVENZIP = subprocess.Popen(['which', '7z'], stdout=subprocess.PIPE).communicate()[0].strip().decode() except Exception: