mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-26 07:49:48 -05:00
The path of the install scripts has changed, so the import path must change too if running locally
This commit is contained in:
parent
cd2baff91f
commit
7a895d4117
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user