Commit 3956c5c7 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Allow exec path to be a directory

parent aed8d257
......@@ -506,7 +506,7 @@ class Component(object):
raise Exception("'" + software + "' path connot be retrieved either in the PATH and in the application.properties file!")
elif exec_path is None and which(software) != None:
exec_path = software
elif exec_path != None and not os.path.isfile(exec_path):
elif exec_path != None and not os.path.exists(exec_path):
logging.getLogger("jflow").exception("'" + exec_path + "' set for '" + software + "' does not exists, please provide a valid path!")
raise Exception("'" + exec_path + "' set for '" + software + "' does not exists, please provide a valid path!")
return exec_path
......
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