Falkamelung/mergeburst race cond (#106)
* race condition fix: avoids raising of exception when multiple jobs create dir at same timeLT1AB
parent
e0b7ad05a1
commit
7fb9142f1d
|
@ -390,8 +390,7 @@ def main(iargs=None):
|
||||||
fileList.append([os.path.join(inps.dirname, 'IW{0}'.format(swath), namePattern[0] + '_%02d.%s'%(x,namePattern[1])) for x in range(minBurst, maxBurst+1)])
|
fileList.append([os.path.join(inps.dirname, 'IW{0}'.format(swath), namePattern[0] + '_%02d.%s'%(x,namePattern[1])) for x in range(minBurst, maxBurst+1)])
|
||||||
|
|
||||||
mergedir = os.path.dirname(inps.outfile)
|
mergedir = os.path.dirname(inps.outfile)
|
||||||
if not os.path.isdir(mergedir):
|
os.makedirs(mergedir, exist_ok=True)
|
||||||
os.makedirs(mergedir)
|
|
||||||
|
|
||||||
suffix = '.full'
|
suffix = '.full'
|
||||||
if (inps.numberRangeLooks == 1) and (inps.numberAzimuthLooks==1):
|
if (inps.numberRangeLooks == 1) and (inps.numberAzimuthLooks==1):
|
||||||
|
|
Loading…
Reference in New Issue