summaryrefslogtreecommitdiff
path: root/setuptools
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-04-26 14:31:18 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-04-26 14:31:18 -0400
commitb029a3b6e359babe5adc57c4cf76edb89bbd31ae (patch)
treefba765a787cbe47f5ee5b70ebfa90bbf46718a1b /setuptools
parent42c62a7a344e2139f285c571930d179866167bd5 (diff)
parent2039b2aeba48685275bd2b341bf69d3f3f63786b (diff)
downloadpython-setuptools-git-b029a3b6e359babe5adc57c4cf76edb89bbd31ae.tar.gz
Merged in agronholm/setuptools (pull request #128)
Check for Jython using sys.platform, not os.name
Diffstat (limited to 'setuptools')
-rwxr-xr-xsetuptools/sandbox.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py
index 31e3eb2d..213cebff 100755
--- a/setuptools/sandbox.py
+++ b/setuptools/sandbox.py
@@ -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]