mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-16 17:57:30 -05:00
commit so I can pull
This commit is contained in:
parent
c2a898887e
commit
5dd19bbf80
@ -2,10 +2,11 @@ import os, sys, subprocess, inspect
|
||||
from PyQt4.QtCore import *
|
||||
from PyQt4.QtGui import *
|
||||
from PyQt4.QtWebKit import *
|
||||
|
||||
from os import path
|
||||
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
|
||||
import onionshare, webapp
|
||||
print "after path import"
|
||||
print "after path change"
|
||||
import onionshare
|
||||
import webapp
|
||||
|
||||
window_icon = None
|
||||
|
||||
@ -70,6 +71,7 @@ def select_file(strings):
|
||||
return filename, basename
|
||||
|
||||
def main():
|
||||
print "start main"
|
||||
onionshare.strings = onionshare.load_strings()
|
||||
|
||||
# start the Qt app
|
||||
@ -112,6 +114,7 @@ def main():
|
||||
onionshare.tails_open_port(webapp_port)
|
||||
webapp_thread = WebAppThread(webapp_port)
|
||||
webapp_thread.start()
|
||||
print "after webapp functs"
|
||||
|
||||
# clean up when app quits
|
||||
def shutdown():
|
||||
@ -122,7 +125,7 @@ def main():
|
||||
# launch the window
|
||||
web = Window(basename, webapp_port)
|
||||
web.show()
|
||||
|
||||
print "after show happens"
|
||||
# all done
|
||||
sys.exit(app.exec_())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user