From 19713cf2a650d9ffa910ebeb5f15e8b24e7125ae Mon Sep 17 00:00:00 2001 From: Pearu Peterson Date: Tue, 24 Jul 2007 12:08:46 +0000 Subject: --- numpy/distutils/exec_command.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'numpy/distutils/exec_command.py') diff --git a/numpy/distutils/exec_command.py b/numpy/distutils/exec_command.py index 7b5d5edb4..1ec7aaaa1 100644 --- a/numpy/distutils/exec_command.py +++ b/numpy/distutils/exec_command.py @@ -123,7 +123,7 @@ def test_splitcmdline(): ############################################################ def find_executable(exe, path=None): - """Return full path of a executable. + """Return full path of a executable or None. Symbolic links are not followed. """ @@ -358,7 +358,6 @@ def _exec_command( command, use_shell=None, use_tee = None, **env ): use_shell = os.name=='posix' if use_tee is None: use_tee = os.name=='posix' - using_command = 0 if use_shell: # We use shell (unless use_shell==0) so that wildcards can be @@ -380,7 +379,7 @@ def _exec_command( command, use_shell=None, use_tee = None, **env ): spawn_command = os.spawnvpe else: spawn_command = os.spawnve - argv[0] = find_executable(argv[0]) + argv[0] = find_executable(argv[0]) or argv[0] if not os.path.isfile(argv[0]): log.warn('Executable %s does not exist' % (argv[0])) if os.name in ['nt','dos']: -- cgit v1.2.1