From cfa247532112f69d1ad8f35a6d5688285e48e19c Mon Sep 17 00:00:00 2001 From: Pearu Peterson Date: Tue, 13 Apr 2004 03:07:51 +0000 Subject: Backport to Python 2.1 --- scipy_distutils/exec_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scipy_distutils/exec_command.py') 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 -- cgit v1.2.1