[Pkg-privacy-commits] [onionshare] 24/55: Make launcher scripts require onionshare and onionshare_gui python packages to be installed, to workaround a cx_Freeze issue
Ulrike Uhlig
u-guest at moszumanska.debian.org
Thu Sep 8 10:26:48 UTC 2016
This is an automated email from the git hooks/post-receive script.
u-guest pushed a commit to branch debian
in repository onionshare.
commit 4ce64ed83ef6b4a8db489372c209c78bce000b7c
Author: Micah Lee <micah at micahflee.com>
Date: Sun Sep 4 19:57:34 2016 -0700
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 ed863e4..a896d59 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 <http://www.gnu.org/licenses/>.
"""
-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 24a6f12..6ccdd00 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 <http://www.gnu.org/licenses/>.
"""
-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()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git
More information about the Pkg-privacy-commits
mailing list