Skip to content

Commit c6f3f84

Browse files
committed
conditional path only
1 parent fc7a642 commit c6f3f84

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/compas/_os.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,11 @@ def prepare_environment(env=None):
223223
if PYTHON_DIRECTORY:
224224
if is_windows():
225225
lib_bin = os.path.join(PYTHON_DIRECTORY, 'Library', 'bin')
226-
if os.path.exists(lib_bin) and lib_bin not in env['PATH']:
227-
env['PATH'] = lib_bin + os.pathsep + env['PATH']
228-
229226
else:
230227
lib_bin = os.path.join(PYTHON_DIRECTORY, 'bin')
231-
if os.path.exists(lib_bin) and lib_bin not in env['PATH']:
232-
env['PATH'] = lib_bin + os.pathsep + env['PATH']
228+
229+
if os.path.exists(lib_bin) and lib_bin not in env['PATH']:
230+
env['PATH'] = lib_bin + os.pathsep + env['PATH']
233231

234232
if CONDA_EXE:
235233
env['CONDA_EXE'] = CONDA_EXE

0 commit comments

Comments
 (0)