diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-12 22:25:39 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-12 22:25:39 +0200 |
commit | 971754eba93701cfb22bc4399a37debf238eddf1 (patch) | |
tree | e3a36023f93b73a1621de0c6c9503ccbb301fb03 /pyload/network/JsEngine.py | |
parent | Fix dict generators for python 2.5 (diff) | |
download | pyload-971754eba93701cfb22bc4399a37debf238eddf1.tar.xz |
General fixup (1)
Diffstat (limited to 'pyload/network/JsEngine.py')
-rw-r--r-- | pyload/network/JsEngine.py | 6 |
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): |