guetzli-recursively-gui/.eggs/py2app-0.12-py3.6.egg/py2app/bootstrap/argv_inject.py

8 lines
212 B
Python
Raw Normal View History

2017-04-20 00:57:59 +02:00
def _argv_inject(argv):
import sys
# only use if started by LaunchServices
if len(sys.argv) > 1 and sys.argv[1].startswith('-psn'):
sys.argv[1:2] = argv
else:
sys.argv[1:1] = argv