From 74d64eca9b58293d85ee47d2dad81876bb8929a7 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 5 Aug 2009 19:11:46 -0400 Subject: [PATCH] Uncomment the new lines to calculate some stats. --- pyfpdb/HandHistoryConverter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py index 2ded2c50..3c89f819 100644 --- a/pyfpdb/HandHistoryConverter.py +++ b/pyfpdb/HandHistoryConverter.py @@ -60,7 +60,7 @@ class HandHistoryConverter(): out_dir = os.path.dirname(self.out_path) if not os.path.isdir(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.sitename = sitename @@ -204,7 +204,9 @@ which it expects to find at self.re_TailSplitHands -- see for e.g. Everleaf.py. logging.info("Unsupported game type: %s" % gametype) if hand: +# uncomment these to calculate some stats # print hand +# hand.stats.getStats(hand) hand.writeHand(self.out_fh) return hand else: