aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/sandbox.py
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>2012-11-26 22:24:45 +0100
committerArfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>2012-11-26 22:24:45 +0100
commit3b6b1d147dae6ba825d0597d88abfda4cc3d295a (patch)
tree5f831ac5ce11250f1e05bcc26023657274233ce0 /setuptools/sandbox.py
parent1c2dff7451101c9cfb37e4ae16eb23ef17332f5a (diff)
downloadexternal_python_setuptools-3b6b1d147dae6ba825d0597d88abfda4cc3d295a.tar.gz
external_python_setuptools-3b6b1d147dae6ba825d0597d88abfda4cc3d295a.tar.bz2
external_python_setuptools-3b6b1d147dae6ba825d0597d88abfda4cc3d295a.zip
Fix 2 errors with Jython 2.5.
(Now there remain 1 failure and 2 errors with Jython 2.5 and 1 failure and 5 errors with Jython 2.7.) --HG-- branch : distribute extra : rebase_source : c245820df5090ac5d005ebb7d6c4419145afce53
Diffstat (limited to 'setuptools/sandbox.py')
-rwxr-xr-xsetuptools/sandbox.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py
index 64f725e7..1583b81f 100755
--- a/setuptools/sandbox.py
+++ b/setuptools/sandbox.py
@@ -1,5 +1,8 @@
import os, sys, __builtin__, tempfile, operator, pkg_resources
-_os = sys.modules[os.name]
+if os.name == "java":
+ import org.python.modules.posix.PosixModule as _os
+else:
+ _os = sys.modules[os.name]
try:
_file = file
except NameError: