Merge branch 'master' of git://repo.or.cz/fpbd-bostik

Conflicts:
	pyfpdb/HandHistoryConverter.py
This commit is contained in:
Worros
2009-08-12 22:49:18 +08:00
5 changed files with 17 additions and 143 deletions
+2 -2
View File
@@ -76,11 +76,11 @@ follow : whether to tail -f the input"""
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 != '':
log.info("Creating directory '%s'" % out_dir)
os.makedirs(out_dir)
try:
self.out_fh = open(self.out_path, 'w')
self.out_fh = codecs.open(self.out_path, 'w', 'cp1252')
log.debug("out_path %s opened as %s" % (self.out_path, self.out_fh))
except:
log.error("out_path %s couldn't be opened" % (self.out_path))