fix mkdir call in dumpmap

This commit is contained in:
Laura Klünder 2016-10-09 18:53:29 +02:00
parent 3bf9c19245
commit fcd0f8072b

View file

@ -105,7 +105,7 @@ class MapdataWriter:
for file_path, content in self.write: for file_path, content in self.write:
full_file_path = os.path.join(settings.MAP_ROOT, file_path) full_file_path = os.path.join(settings.MAP_ROOT, file_path)
try: try:
os.makedirs(os.path.join(*os.path.split(full_file_path)[0])) os.makedirs(os.path.split(full_file_path)[0])
except os.error: except os.error:
pass pass
if content is not None: if content is not None: