Skip to content

Commit

Permalink
bugfix: Wrong Transformer creation parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Néstor Arocha Rodríguez committed Feb 19, 2012
1 parent aa80898 commit 3be7250
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions bin/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, optionsdict):
from ColonyDSL.Function.Transformer.Python import HostPythonTransformer
#import ColonyDSL.GlobalConfig
#ColonyDSL.GlobalConfig.GLOBALCONFIG.strictgrammar = True
self.__maingt = HostPythonTransformer("Main",{"input":"dummy"},{"output":"TrueFalse"},{"checker":"GrammarChecker"}, checkfun)
self.__maingt = HostPythonTransformer({"input":"dummy"},{"output":"TrueFalse"},{"checker":"GrammarChecker"}, checkfun)
UnixProgram.__init__(self, optionsdict)

def execute(self):
Expand Down Expand Up @@ -127,18 +127,14 @@ def readT(self, newtype):

logging.basicConfig(level = DEBUGLEVEL)
program = Checker(ARGS)
if (ARGS.tname):
try:
program.readT(ARGS.tname)
except BadFileFormat:
print("Error reading input file")
sys.exit(1)
except LibraryException as le:
print("Unable to load " + le.elementname + " " + le.elementtype)
sys.exit(1)
else:
print(TUSAGE)
sys.exit(0)
try:
program.readT(ARGS.tname)
except BadFileFormat:
print("Error reading input file")
sys.exit(1)
except LibraryException as le:
print("Unable to load " + le.elementname + " " + le.elementtype)
sys.exit(1)
try:
result = program.execute()
except EOFError:
Expand Down

0 comments on commit 3be7250

Please sign in to comment.