diff --git a/madgraph/various/banner.py b/madgraph/various/banner.py index 617ec7785..42d82818d 100755 --- a/madgraph/various/banner.py +++ b/madgraph/various/banner.py @@ -1006,18 +1006,10 @@ def __init__(self, finput=None, **opt): self.allowed_value = {} self.default_setup() - self.plugin_input(finput) - # if input is define read that input if isinstance(finput, (file, str, StringIO.StringIO)): self.read(finput, **opt) - - - - - def plugin_input(self, finput=None): - pass def default_setup(self): @@ -2654,26 +2646,6 @@ class RunCard(ConfigFile): donewarning = [] include_as_parameter = [] - def plugin_input(self, finput): - - if not finput and not MADEVENT: - return - curr_dir = None - if isinstance(finput, file): - # expected path to be like "XXXX/Cards/run_card.dat" - curr_dir = os.path.dirname(os.path.dirname(finput.name)) - elif isinstance(finput, str): - curr_dir = os.path.dirname(os.path.dirname(finput)) - - if curr_dir: - if os.path.exists(pjoin(curr_dir, 'bin', 'internal', 'plugin_run_card')): - # expected format {} passing everything as optional argument - for line in open(pjoin(curr_dir, 'bin', 'internal', 'plugin_run_card')): - if line.startswith('#'): - continue - opts = dict(eval(line)) - self.add_param(**opts) - @classmethod def fill_post_set_from_blocks(cls): """set the post_set function for any parameter defined in a run_block"""