use return instead of two nested breaks that do not even work correctly like it is used here
This commit is contained in:
parent
ee7022d8cf
commit
4966231e5b
|
@ -29,11 +29,10 @@ class MSC_TOOLS():
|
||||||
libPath = '%s/mentat%s/shlib/%s'%(MSCpath,release,subdir)
|
libPath = '%s/mentat%s/shlib/%s'%(MSCpath,release,subdir)
|
||||||
if os.path.exists(libPath):
|
if os.path.exists(libPath):
|
||||||
thePath = libPath
|
thePath = libPath
|
||||||
break
|
return thePath
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
break
|
|
||||||
return thePath
|
|
||||||
|
|
||||||
def submit_job(self,
|
def submit_job(self,
|
||||||
run_marc_path='/msc/marc2010/tools/',
|
run_marc_path='/msc/marc2010/tools/',
|
||||||
|
|
Loading…
Reference in New Issue