From 4ce64ed83ef6b4a8db489372c209c78bce000b7c Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Sun, 4 Sep 2016 19:57:34 -0700 Subject: [PATCH] Make launcher scripts require onionshare and onionshare_gui python packages to be installed, to workaround a cx_Freeze issue --- install/scripts/onionshare | 9 +-------- install/scripts/onionshare-gui | 9 +-------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/install/scripts/onionshare b/install/scripts/onionshare index ed863e4f..a896d597 100755 --- a/install/scripts/onionshare +++ b/install/scripts/onionshare @@ -18,12 +18,5 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ -import sys, os - -try: - import onionshare -except ImportError: - sys.path.append(os.path.abspath(os.path.dirname(__file__)+'/../..')) - import onionshare - +import onionshare onionshare.main() diff --git a/install/scripts/onionshare-gui b/install/scripts/onionshare-gui index 24a6f12b..6ccdd00b 100755 --- a/install/scripts/onionshare-gui +++ b/install/scripts/onionshare-gui @@ -18,12 +18,5 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ -import sys, os - -try: - import onionshare_gui -except ImportError: - sys.path.append(os.path.abspath(os.path.dirname(__file__)+'/../..')) - import onionshare_gui - +import onionshare_gui onionshare_gui.main()