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