Skip to content

Commit

Permalink
cli_launcher: Keep launcher running while executing command
Browse files Browse the repository at this point in the history
os.execv is sketchy on Windows, make it a little more tolerable
  • Loading branch information
jackrosenthal committed Feb 12, 2024
1 parent 9dd6108 commit 6f852b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ def update_venv() -> None:
def main():
"""The main function."""
update_venv()
algobowl = venv_cmd("algobowl")
os.execv(venv_cmd("algobowl"), sys.argv)
sys.exit(subprocess.run([venv_cmd("algobowl")] + sys.argv[1:]).returncode)


if __name__ == "__main__":
Expand Down

0 comments on commit 6f852b4

Please sign in to comment.