Fix signature verification on OSX with SIP

This commit is contained in:
Jonathan Harris committed 2016-11-22 23:43:24 +00:00
1 parent 1f6a5883b7
commit 8bb09cc773
2 files changed
+6 -1

No files matched your search

+1 -1
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:
+5
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