Skip to content

Commit

Permalink
build fix for gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
EphDoering committed Aug 11, 2024
1 parent d4248da commit 2e147b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"speechd", # cspell:disable-line
]

if sys.base_prefix == sys.prefix: # not in venv
if sys.base_prefix == sys.prefix and "GITHUB_RUN_ID" not in os.environ: # not in venv
venv = Path(".", "venv")

if sys.platform == "win32":
Expand Down Expand Up @@ -44,7 +44,7 @@
print(copy_cmd)
if os.system(copy_cmd):
raise RuntimeError()
cmd = [str(venv_python), __file__]
cmd = f"{venv_python} {__file__}"
os.system(cmd)
raise SystemExit()

Expand Down

0 comments on commit 2e147b9

Please sign in to comment.