put prefix in front of the filename, not the directory name
This commit is contained in:
parent
948d9c03d0
commit
4cfc302cdd
|
@ -80,7 +80,7 @@ if filenames == []:
|
|||
else:
|
||||
for name in filenames:
|
||||
if os.path.exists(name):
|
||||
files.append({'name':name, 'input':open(name), 'output':open(prefix+'_'+name,'w')})
|
||||
files.append({'name':name, 'input':open(name), 'output':open(os.path.dirname(name)+os.sep+prefix+'_'+os.path.basename(name),'w')})
|
||||
|
||||
|
||||
# ------------------------------------------ loop over input files ---------------------------------------
|
||||
|
|
Loading…
Reference in New Issue