summaryrefslogtreecommitdiff
path: root/scipy_distutils/exec_command.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2004-04-13 03:07:51 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2004-04-13 03:07:51 +0000
commitcfa247532112f69d1ad8f35a6d5688285e48e19c (patch)
tree7ceecbc051731f7c71b44a4fe20fb35f8d0133a8 /scipy_distutils/exec_command.py
parent7040550602d55ada25e0bd5cc25a99c6e25dce8e (diff)
downloadnumpy-cfa247532112f69d1ad8f35a6d5688285e48e19c.tar.gz
Backport to Python 2.1
Diffstat (limited to 'scipy_distutils/exec_command.py')
-rw-r--r--scipy_distutils/exec_command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scipy_distutils/exec_command.py b/scipy_distutils/exec_command.py
index f172b2a74..6d482e269 100644
--- a/scipy_distutils/exec_command.py
+++ b/scipy_distutils/exec_command.py
@@ -126,7 +126,7 @@ def find_executable(exe, path=None):
orig_exe = exe
if path is None:
path = os.environ.get('PATH',os.defpath)
- if os.name=='posix':
+ if os.name=='posix' and sys.version[:3]>'2.1':
realpath = os.path.realpath
else:
realpath = lambda a:a