Skip to content

Commit

Permalink
Fix running AdvantageScope.py directly (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Jan 21, 2024
1 parent e669c7f commit ac47a15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/AdvantageScope.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
cmd = [year_folder + "\\advantagescope\\AdvantageScope (WPILib).exe"]

env = os.environ.copy()
del env["ELECTRON_RUN_AS_NODE"]
if "ELECTRON_RUN_AS_NODE" in env.keys():
del env["ELECTRON_RUN_AS_NODE"]

try:
subprocess.Popen(cmd, env=env)
Expand Down

0 comments on commit ac47a15

Please sign in to comment.