summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-26 18:54:06 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-26 20:08:20 (GMT)
commit613f7b625dcd0b582729230ab7ea4902302d96ed (patch)
treeaef89c8aab6d5355be5d098262089ef50b42592d
parent80deebb51e676140763f0992e6d85771c874a7e8 (diff)
kajonggtest: --log used wrong directories with --23
-rwxr-xr-xsrc/kajonggtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kajonggtest.py b/src/kajonggtest.py
index c6f355d..33411b9 100755
--- a/src/kajonggtest.py
+++ b/src/kajonggtest.py
@@ -327,7 +327,7 @@ class Job(StrMixin):
if self.__logFile is None:
logDir = os.path.expanduser(
os.path.join('~', '.kajongg', 'log', str(self.game),
- self.ruleset, self.aiVariant, '3' if isPython3 else '2'))
+ self.ruleset, self.aiVariant, str(self.pythonVersion)))
if not os.path.exists(logDir):
os.makedirs(logDir)
logFileName = self.commitId