Fix my last fix of previous commit.

This commit is contained in:
Ray 2009-08-05 23:25:43 -04:00
parent ee01deb852
commit 71aaf62c40

View File

@ -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')