summaryrefslogtreecommitdiffstats
path: root/module/web/settings.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-05 22:55:22 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-05 22:55:22 +0200
commit3e0bc9a0fb4dd6324e9764bc31f4686d672b70f4 (patch)
tree42265eeda90cbea3693ca28bc545afc630a2693b /module/web/settings.py
parentchanged dl function for test purpose (diff)
downloadpyload-3e0bc9a0fb4dd6324e9764bc31f4686d672b70f4.tar.xz
general js api + pyv8 support
Diffstat (limited to 'module/web/settings.py')
-rw-r--r--module/web/settings.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/module/web/settings.py b/module/web/settings.py
index 515117860..4dfe50fdc 100644
--- a/module/web/settings.py
+++ b/module/web/settings.py
@@ -55,13 +55,8 @@ except:
PYLOAD = xmlrpclib.ServerProxy(server_url, allow_none=True)
-try:
- import subprocess
- subprocess.Popen(["js", "-v"], bufsize=-1,stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- JS = ["js"]
-except:
- JS = []
-
+from module.JsEngine import JsEngine
+JS = JsEngine()
TEMPLATE = config.get('webinterface','template')
DL_ROOT = os.path.join(PYLOAD_DIR, config.get('general','download_folder'))