1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

Fix signature verification on OSX with SIP

This commit is contained in:
Jonathan Harris 2016-11-22 23:31:59 +00:00
parent 1f6a5883b7
commit 8bb09cc773
2 changed files with 6 additions and 1 deletions

View File

@ -144,7 +144,7 @@ Download and extract the source code of the [latest release](https://github.com/
Mac:
* Requires the Python “requests” and “watchdog” modules - install these with `easy_install requests watchdog` .
* Requires the Python “requests” and “watchdog” modules, plus an up-to-date “py2app” module if you also want to package the app - install these with `easy_install -U requests watchdog py2app` .
* Run with `./EDMarketConnector.py` .
Windows:

View File

@ -26,6 +26,11 @@ if sys.platform=='win32':
import py2exe
dist_dir = 'dist.win32'
elif sys.platform=='darwin':
if sys.executable.startswith('/usr'):
# SIP doesn't allow symlinks to /usr/bin/...
import subprocess
subprocess.call(['/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python'] + sys.argv, stdout=sys.stdout, stderr=sys.stderr)
sys.exit(0)
dist_dir = 'dist.macosx'
else:
assert False, 'Unsupported platform %s' % sys.platform