From ef96884e77d9d9a4d16ecc1062f84c640da78be8 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sun, 25 Mar 2018 23:45:32 +0200 Subject: [PATCH] Support for FreeBSD --- wrp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wrp.py b/wrp.py index 7225be5..b60b445 100755 --- a/wrp.py +++ b/wrp.py @@ -72,7 +72,7 @@ RENDERS = {} ### 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.QtGui import * from PyQt4.QtWebKit import * @@ -673,7 +673,7 @@ class Proxy(SimpleHTTPServer.SimpleHTTPRequestHandler): 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.map" % (rnd) @@ -702,7 +702,7 @@ def main(): # Launch Proxy Thread 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 PyQt4.QtCore # Initialize Qt-Application, but make this script