Skip to content

Commit

Permalink
trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgWa committed Mar 6, 2024
1 parent f803b8e commit daf6c0b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion release/pyinstaller/cli_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@
# catch pyinstaller bug
# subprocess.CalledProcessError: Command '['/Applications/alphaDIA.app/Contents/Frameworks/alphadia', '-sS', '-c', 'import platform; print(platform.mac_ver()[0])']' returned non-zero exit status 2.
# [36481] Failed to execute script 'cli_hook' due to unhandled exception!
print(sys.argv)

for i, arg in enumerate(sys.argv):
print(i, arg)

if sys.argv[1] == "-sS" & sys.argv[2] == "-c":
import platform

print(platform.mac_ver()[0])
sys.exit(0)


multiprocessing.freeze_support()
cli.run()

0 comments on commit daf6c0b

Please sign in to comment.