Commit 45e354d4 authored by Guillaume's avatar Guillaume
Browse files

Fix catalog ext.

parent ea1e2257
......@@ -90,18 +90,11 @@ class Process(object):
# Append entry to final list.
self.entries.append(entry)
catname = '_'.join(source.split('/')[2:-1])
catpath = os.path.join(self.outcat, self.project, catname)
# Remove existing catalog files.
try:
for ext in [CSV_EXTENSION, JSON_EXTENSION]:
os.remove(catpath + ext)
except OSError:
pass
# Write CSV catalog.
make_csv(catpath + CSV_EXTENSION, self.entries)
catname = '_'.join(source.split('/')[2:-1])
catpath = os.path.join(self.outcat, self.project, catname)
# Write CSV catalog.
make_csv(catpath + CSV_EXTENSION, self.entries)
except Exception as e:
print(source, e)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment