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:
|
try:
|
||||||
import onionshare
|
import onionshare
|
||||||
except ImportError:
|
except ImportError:
|
||||||
sys.path.append(os.path.abspath(os.path.dirname(__file__)+'/..'))
|
sys.path.append(os.path.abspath(os.path.dirname(__file__)+'/../..'))
|
||||||
import onionshare
|
import onionshare
|
||||||
|
|
||||||
onionshare.main()
|
onionshare.main()
|
||||||
|
@ -23,7 +23,7 @@ import sys, os
|
|||||||
try:
|
try:
|
||||||
import onionshare_gui
|
import onionshare_gui
|
||||||
except ImportError:
|
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
|
import onionshare_gui
|
||||||
|
|
||||||
onionshare_gui.main()
|
onionshare_gui.main()
|
||||||
|
Loading…
Reference in New Issue
Block a user