Skip to content

Commit

Permalink
Don't join ENV var paths with ':' on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nh2 committed Sep 10, 2013
1 parent e6f1b0d commit 4af1186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sublime_haskell_common.py
Expand Up @@ -105,7 +105,7 @@ def call_no_wait(command, **popen_kwargs):

extended_env = dict(os.environ)
PATH = os.getenv('PATH') or ""
extended_env['PATH'] = ':'.join(get_setting_async('add_to_PATH', []) + [PATH])
extended_env['PATH'] = os.pathsep.join(get_setting_async('add_to_PATH', []) + [PATH])

process = subprocess.Popen(
command,
Expand All @@ -128,7 +128,7 @@ def call_and_wait_with_input(command, input_string, **popen_kwargs):
# For the subprocess, extend the env PATH to include the 'add_to_PATH' setting.
extended_env = dict(os.environ)
PATH = os.getenv('PATH') or ""
extended_env['PATH'] = ':'.join(get_setting_async('add_to_PATH', []) + [PATH])
extended_env['PATH'] = os.pathsep.join(get_setting_async('add_to_PATH', []) + [PATH])

process = subprocess.Popen(
command,
Expand Down

0 comments on commit 4af1186

Please sign in to comment.