summaryrefslogtreecommitdiff
path: root/servergreps/hercules/src/reporter.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-05 19:00:20 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-05 19:07:21 +0300
commitd4136a89129d2043f6dab714465f63bf2350dbb1 (patch)
tree2408e5d17674c1a6add5feaff0ff0b4698095e53 /servergreps/hercules/src/reporter.py
parent865c8e4bbf765e56852ec1aa74e7d9f7d8db63f5 (diff)
downloadevol-tools-d4136a89129d2043f6dab714465f63bf2350dbb1.tar.gz
evol-tools-d4136a89129d2043f6dab714465f63bf2350dbb1.tar.bz2
evol-tools-d4136a89129d2043f6dab714465f63bf2350dbb1.tar.xz
evol-tools-d4136a89129d2043f6dab714465f63bf2350dbb1.zip
servergreps: in hercules class set dir name configurable.
Diffstat (limited to 'servergreps/hercules/src/reporter.py')
-rwxr-xr-xservergreps/hercules/src/reporter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/servergreps/hercules/src/reporter.py b/servergreps/hercules/src/reporter.py
index 535887e..fedb23a 100755
--- a/servergreps/hercules/src/reporter.py
+++ b/servergreps/hercules/src/reporter.py
@@ -6,7 +6,7 @@
class Reporter:
def reportManaplus(self, hercules, manaplus):
- with open(self.packetDir + "/hercules_outpackets.txt", "w") as w:
+ with open(self.packetDir + "/" + hercules.reportName + "_outpackets.txt", "w") as w:
for packet in hercules.outPacketsSorted:
data = packet
while data[0] == "0":
@@ -181,7 +181,7 @@ class Reporter:
def reportHercules(self, hercules):
- with open(self.packetDir + "/hercules_issues.txt", "w") as w:
+ with open(self.packetDir + "/" + hercules.reportName + "_issues.txt", "w") as w:
for name in hercules.functionToId:
packet = hercules.functionToId[name]
if name != hercules.inPackets[packet][1]: