131
131
return self.InvalidCmd, 'Invalid Syntax: Too many argument'
134
if not args[1] in ['LO', 'NLO', 'aMC@NLO', 'aMC@LO']:
134
if not args[1] in ['LO', 'NLO', 'aMC@NLO', 'aMC@LO', 'auto']:
135
135
raise self.InvalidCmd, '%s is not a valid mode, please use "LO", "NLO", "aMC@NLO" or "aMC@LO"' % args[1]
137
137
#check if args[0] is path or mode
138
if args[0] in ['LO', 'NLO', 'aMC@NLO', 'aMC@LO'] and self._done_export:
138
if args[0] in ['LO', 'NLO', 'aMC@NLO', 'aMC@LO', 'auto'] and self._done_export:
139
139
args.insert(0, self._done_export[0])
140
140
elif os.path.isdir(args[0]) or os.path.isdir(pjoin(MG5DIR, args[0]))\
141
141
or os.path.isdir(pjoin(MG4DIR, args[0])):
145
145
# search for a valid path