The path of the install scripts has changed, so the import path must change too if running locally

This commit is contained in:
Micah Lee 2016-06-10 17:29:22 -07:00
parent cd2baff91f
commit 7a895d4117
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ import sys, os
try:
import onionshare
except ImportError:
sys.path.append(os.path.abspath(os.path.dirname(__file__)+'/..'))
sys.path.append(os.path.abspath(os.path.dirname(__file__)+'/../..'))
import onionshare
onionshare.main()

View File

@ -23,7 +23,7 @@ import sys, os
try:
import onionshare_gui
except ImportError:
sys.path.append(os.path.abspath(os.path.dirname(__file__)+'/..'))
sys.path.append(os.path.abspath(os.path.dirname(__file__)+'/../..'))
import onionshare_gui
onionshare_gui.main()