Skip to content

Commit c32f460

Browse files
committed
make launch command work
1 parent d5ee2d1 commit c32f460

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

madgraph/interface/madgraph_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@ def check_launch(self, args, options):
13621362
if not args:
13631363
if self._done_export:
13641364
mode = self.find_output_type(self._done_export[0])
1365-
if (self._done_export[1] == 'plugin' and mode in self._export_formats):
1365+
if mode == "mg7" or (self._done_export[1] == 'plugin' and mode in self._export_formats):
13661366
args.append(mode)
13671367
args.append(self._done_export[0])
13681368
elif self._done_export[1].startswith(mode):
@@ -7675,7 +7675,7 @@ def do_launch(self, line):
76757675
ext_program = launch_ext.MWLauncher( self, args[1],
76767676
shell = isinstance(self, cmd.CmdShell),
76777677
options=self.options,**options)
7678-
elif args[0] == 'mg7':
7678+
elif args[0][:3] == 'mg7':
76797679
class ext_program:
76807680
@staticmethod
76817681
def run():

0 commit comments

Comments
 (0)