From: Cédric Aguerre Date: Fri, 14 Mar 2014 14:33:31 +0000 (+0100) Subject: exception raised if given script is not found X-Git-Tag: V7_4_0b1~4^2~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=efc3ea39c8d9a06ecb3dc86831f3a172a22d0030;p=modules%2Fkernel.git exception raised if given script is not found --- diff --git a/bin/salomeContextUtils.py.in b/bin/salomeContextUtils.py.in index 41e2c1138..6bd96b90d 100644 --- a/bin/salomeContextUtils.py.in +++ b/bin/salomeContextUtils.py.in @@ -122,7 +122,9 @@ def getScriptsAndArgs(args=[], searchPathList=None): if not os.path.isfile(elt) and not os.path.isfile(elt+".py"): eltInSearchPath = __getScriptPath(elt, searchPathList) if eltInSearchPath is None or (not os.path.isfile(eltInSearchPath) and not os.path.isfile(eltInSearchPath+".py")): - raise SalomeContextException("Script not found: %s"%elt) + if elt[-3:] == ".py": + raise SalomeContextException("Script not found: %s"%elt) + continue elt = eltInSearchPath if elt[-4:] != ".hdf":