Skip to content

Commit

Permalink
Hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gi-b716 committed Nov 17, 2024
1 parent 559c2b9 commit 7ea0272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def runHacking(self, id):
elif self.config.checkerFile != "":
runCheckerCommand = self.config.runningCheckerCommands.replace("$(cname)",self.config.checkerFile).replace("$(i)",freInputFileName).replace("$(a)",ansFileName).replace("$(o)",freOutputFileName)
result = os.system("{0}".format(runCheckerCommand))
if result == 0:
if result != 1:
os.system("copy .\\{0} .\\wrongOutput".format(freOutputFileName))
os.system("rename .\\wrongOutput\\{0} {1}{2}.{3}".format(freOutputFileName,self.config.wrongOutputFileName[0],id,self.config.wrongOutputFileName[1]))

Expand Down

0 comments on commit 7ea0272

Please sign in to comment.