From 71aaf62c40d52306523101353ad8901dfc3c87ef Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 5 Aug 2009 23:25:43 -0400 Subject: [PATCH] Fix my last fix of previous commit. --- pyfpdb/HandHistoryConverter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py index bb30e705..76a98e7b 100644 --- a/pyfpdb/HandHistoryConverter.py +++ b/pyfpdb/HandHistoryConverter.py @@ -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')