mirror of
https://github.com/tenox7/wrp.git
synced 2025-01-03 07:29:37 +00:00
commit
b89211e432
6
wrp.py
6
wrp.py
@ -72,7 +72,7 @@ RENDERS = {}
|
|||||||
### Linux CODEPATH ###
|
### Linux CODEPATH ###
|
||||||
#######################
|
#######################
|
||||||
|
|
||||||
if sys.platform == "linux" or sys.platform == "linux2":
|
if sys.platform == "linux" or sys.platform == "linux2" or sys.platform.startswith('freebsd'):
|
||||||
from PyQt4.QtCore import *
|
from PyQt4.QtCore import *
|
||||||
from PyQt4.QtGui import *
|
from PyQt4.QtGui import *
|
||||||
from PyQt4.QtWebKit import *
|
from PyQt4.QtWebKit import *
|
||||||
@ -673,7 +673,7 @@ class Proxy(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|||||||
|
|
||||||
rnd = random.randrange(0, 1000)
|
rnd = random.randrange(0, 1000)
|
||||||
|
|
||||||
if sys.platform == "linux" or sys.platform == "linux2":
|
if sys.platform == "linux" or sys.platform == "linux2" or sys.platform.startswith('freebsd'):
|
||||||
|
|
||||||
"wrp-%s.jpg" % (rnd)
|
"wrp-%s.jpg" % (rnd)
|
||||||
"wrp-%s.map" % (rnd)
|
"wrp-%s.map" % (rnd)
|
||||||
@ -702,7 +702,7 @@ def main():
|
|||||||
# Launch Proxy Thread
|
# Launch Proxy Thread
|
||||||
threading.Thread(target=run_proxy).start()
|
threading.Thread(target=run_proxy).start()
|
||||||
|
|
||||||
if sys.platform == "linux" or sys.platform == "linux2":
|
if sys.platform == "linux" or sys.platform == "linux2" or sys.platform.startswith('freebsd'):
|
||||||
import signal
|
import signal
|
||||||
import PyQt4.QtCore
|
import PyQt4.QtCore
|
||||||
# Initialize Qt-Application, but make this script
|
# Initialize Qt-Application, but make this script
|
||||||
|
Loading…
Reference in New Issue
Block a user