Commit 5b00c9a9 authored by Olivier Cros's avatar Olivier Cros

Fix commit 2617

Fixes a bug related to the misnamed command variable. Creates a new
temporary variable to stock the path to a command and test it.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2618 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 80a7463c
......@@ -61,9 +61,9 @@ class NEOProcess(object):
split_path = path.split(":")
for elt_path in split_path:
command = "%s/%s" % (elt_path, command)
if os.path.exists(command):
self.command = command
command_tmp = "%s/%s" % (elt_path, command)
if os.path.exists(command_tmp):
self.command = command_tmp
break
else:
raise NotFound, '%s not found' % (command)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment