From 0c525f750dad3f57297836ddea02da7d42ad5969 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 12 May 2015 17:21:33 +0200 Subject: Other import fixes (4) --- pyload/webui/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pyload/webui/__init__.py') diff --git a/pyload/webui/__init__.py b/pyload/webui/__init__.py index a0e849a11..e1fe6738f 100644 --- a/pyload/webui/__init__.py +++ b/pyload/webui/__init__.py @@ -107,13 +107,13 @@ def run_lightweight(host="0.0.0.0", port="8000"): def run_threaded(host="0.0.0.0", port="8000", theads=3, cert="", key=""): - from wsgiserver import CherryPyWSGIServer + import wsgiserver if cert and key: - CherryPyWSGIServer.ssl_certificate = cert - CherryPyWSGIServer.ssl_private_key = key + wsgiserver.CherryPyWSGIServer.ssl_certificate = cert + wsgiserver.CherryPyWSGIServer.ssl_private_key = key - CherryPyWSGIServer.numthreads = theads + wsgiserver.CherryPyWSGIServer.numthreads = theads from pyload.webui.app.utils import CherryPyWSGI -- cgit v1.2.3