Merge branch 'master' of git://git.assembla.com/free_poker_tools

Conflicts:
	pyfpdb/HandHistoryConverter.py
This commit is contained in:
grindi
2009-08-12 02:39:33 +04:00
3 changed files with 8 additions and 140 deletions
+3 -7
View File
@@ -76,14 +76,10 @@ 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):
log.info("Creating directory '%s'" % out_dir)
if not os.path.isdir(out_dir) and out_dir != '':
logging.info("Creatin directory '%s'" % out_dir)
os.makedirs(out_dir)
try:
self.out_fh = open(self.out_path, 'w')
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))
self.out_fh = codecs.open(self.out_path, 'w', 'cp1252')
self.follow = follow
self.compiledPlayers = set()