Skip to content
Snippets Groups Projects
Commit d2721999 authored by David Verelst's avatar David Verelst
Browse files

typo: missing path

parent 662deba1
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -83,7 +83,7 @@ class HTCFile(HTCContents, HTCDefaults):
else:
self.filename = filename
# exist_ok does not exist in Python27
if not os.path.exists():
if not os.path.exists(os.path.dirname(filename)):
os.makedirs(os.path.dirname(filename))#, exist_ok=True)
with open(filename, 'w') as fid:
fid.write(str(self))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment