diff options
| author | Alex Grönholm <alex.gronholm@nextday.fi> | 2015-04-21 22:24:09 +0300 |
|---|---|---|
| committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2015-04-21 22:24:09 +0300 |
| commit | 2039b2aeba48685275bd2b341bf69d3f3f63786b (patch) | |
| tree | 7b4f8de40e86d4b630bda72f815f52f0b02b7b4b /setuptools | |
| parent | c2cc7435a96775ef4cd018930fdd83b8ba1dd45d (diff) | |
| download | python-setuptools-git-2039b2aeba48685275bd2b341bf69d3f3f63786b.tar.gz | |
Check for Jython using sys.platform, not os.name
Diffstat (limited to 'setuptools')
| -rwxr-xr-x | setuptools/sandbox.py | 2 |
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] |
