Make launcher scripts require onionshare and onionshare_gui python packages to be installed, to workaround a cx_Freeze issue

This commit is contained in:
Micah Lee 2016-09-04 19:57:34 -07:00
parent 8e8ea9c357
commit 4ce64ed83e
2 changed files with 2 additions and 16 deletions

View File

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

View File

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