Fix my last fix of previous commit.
This commit is contained in:
parent
ee01deb852
commit
71aaf62c40
|
@ -58,7 +58,7 @@ class HandHistoryConverter():
|
|||
else:
|
||||
# TODO: out_path should be sanity checked.
|
||||
out_dir = os.path.dirname(self.out_path)
|
||||
if not os.path.isdir(out_dir):
|
||||
if not os.path.isdir(out_dir) and out_dir != '':
|
||||
logging.info("Creatin directory '%s'" % out_dir)
|
||||
os.makedirs(out_dir)
|
||||
self.out_fh = open(self.out_path, 'w')
|
||||
|
|
Loading…
Reference in New Issue
Block a user