Commit 2039b2ae authored by Alex Grönholm's avatar Alex Grönholm

Check for Jython using sys.platform, not os.name

parent c2cc7435
......@@ -10,7 +10,7 @@ import pickle
import pkg_resources
if os.name == "java":
if sys.platform.startswith('java'):
import org.python.modules.posix.PosixModule as _os
else:
_os = sys.modules[os.name]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment