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()