pull/889/head
Piero Toffanin 2018-07-04 15:26:37 -04:00
rodzic 5a320d6ceb
commit 5db5eddd73
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -82,7 +82,7 @@ class ODMSmvsCell(ecto.Cell):
system.run('%s %s %s' % (context.smvs_path, ' '.join(config), tree.smvs)) system.run('%s %s %s' % (context.smvs_path, ' '.join(config), tree.smvs))
# find and rename the output file for simplicity # find and rename the output file for simplicity
smvs_files = glob.glob('smvs-*') smvs_files = glob.glob(os.path.join(tree.smvs, 'smvs-*'))
smvs_files.sort(key=os.path.getmtime) # sort by last modified date smvs_files.sort(key=os.path.getmtime) # sort by last modified date
if len(smvs_files) > 0: if len(smvs_files) > 0:
old_file = smvs_files[-1] old_file = smvs_files[-1]