From d2721999f789dcd66c65265ced7d47daa4bd65dd Mon Sep 17 00:00:00 2001 From: dave <dave@dtu.dk> Date: Mon, 1 Feb 2016 14:44:16 +0100 Subject: [PATCH] typo: missing path --- wetb/hawc2/htc_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wetb/hawc2/htc_file.py b/wetb/hawc2/htc_file.py index ad5cf45e..54a742a5 100644 --- a/wetb/hawc2/htc_file.py +++ b/wetb/hawc2/htc_file.py @@ -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)) -- GitLab