Skip to content

Commit

Permalink
Fix dev.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Nov 11, 2024
1 parent 01704ba commit 21b97a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rootproject/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _cmd(batch_commands:str, cwd=None, env=None):
print(batch_commands)
try:
subprocess.run(
["cmd", "/c", batch_file_path], input=b"\n", check=True, cwd=cwd, env=env
["cmd", "/c", batch_file_path], input=b"\n", check=True, cwd=cwd, env=use_env
)
finally:
os.remove(batch_file_path)
Expand All @@ -62,7 +62,7 @@ def _cmd(batch_commands:str, cwd=None, env=None):
print(batch_commands)
try:
args = ['bash', batch_file_path]
subprocess.run(args, input=b"\n", check=True, cwd=cwd, env=env)
subprocess.run(args, input=b"\n", check=True, cwd=cwd, env=use_env)
except:
print("Failed running: " + subprocess.list2cmdline(args), file=sys.stderr)
finally:
Expand Down Expand Up @@ -193,7 +193,6 @@ def build_pydev_in_build_dir(pydevd_binaries='true'):

if sys.platform == 'win32':
contents = rf'''
@echo off
git clone {BASE_LOCAL_PYDEV_GIT}
cd Pydev
git reset --hard
Expand Down

0 comments on commit 21b97a1

Please sign in to comment.