mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-15 01:26:01 -04:00
made pyinstaller work for OSX (#43)
This commit is contained in:
parent
8011472dee
commit
9db3ca59c8
6 changed files with 64 additions and 44 deletions
|
@ -1,9 +1,12 @@
|
|||
import os, sys, subprocess, inspect
|
||||
import os, sys, subprocess, inspect, platform
|
||||
from PyQt4.QtCore import *
|
||||
from PyQt4.QtGui import *
|
||||
from PyQt4.QtWebKit import *
|
||||
|
||||
onionshare_gui_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
|
||||
if platform.system() == 'Darwin':
|
||||
onionshare_gui_dir = os.path.dirname(__file__)
|
||||
else:
|
||||
onionshare_gui_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
|
||||
|
||||
try:
|
||||
import onionshare
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue