summaryrefslogtreecommitdiffstats
path: root/pyload/network/JsEngine.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 22:25:39 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 22:25:39 +0200
commit971754eba93701cfb22bc4399a37debf238eddf1 (patch)
treee3a36023f93b73a1621de0c6c9503ccbb301fb03 /pyload/network/JsEngine.py
parentFix dict generators for python 2.5 (diff)
downloadpyload-971754eba93701cfb22bc4399a37debf238eddf1.tar.xz
General fixup (1)
Diffstat (limited to 'pyload/network/JsEngine.py')
-rw-r--r--pyload/network/JsEngine.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/network/JsEngine.py b/pyload/network/JsEngine.py
index 8b5e2d760..9c8de05a7 100644
--- a/pyload/network/JsEngine.py
+++ b/pyload/network/JsEngine.py
@@ -213,10 +213,10 @@ class RhinoEngine(AbstractEngine):
jspath = [
"/usr/share/java/js.jar",
"js.jar",
- path.join(pypath, "js.jar")
+ os.path.join(pypath, "js.jar")
]
for p in jspath:
- if path.exists(p):
+ if os.path.exists(p):
self.path = p
break
else:
@@ -240,7 +240,7 @@ class JscEngine(AbstractEngine):
def setup(self):
jspath = "/System/Library/Frameworks/JavaScriptCore.framework/Resources/jsc"
- self.path = jspath if path.exists(jspath) else ""
+ self.path = jspath if os.path.exists(jspath) else ""
def eval(self, script):