diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-05 19:00:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-05 19:07:21 +0300 |
commit | d4136a89129d2043f6dab714465f63bf2350dbb1 (patch) | |
tree | 2408e5d17674c1a6add5feaff0ff0b4698095e53 /servergreps/hercules/src/reporter.py | |
parent | 865c8e4bbf765e56852ec1aa74e7d9f7d8db63f5 (diff) | |
download | evol-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-x | servergreps/hercules/src/reporter.py | 4 |
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]: |