mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-11 20:29:15 -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
1786699cd0
commit
6f95075f0a
@ -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…
x
Reference in New Issue
Block a user