@@ -1006,18 +1006,10 @@ def __init__(self, finput=None, **opt):
1006
1006
self .allowed_value = {}
1007
1007
1008
1008
self .default_setup ()
1009
- self .plugin_input (finput )
1010
-
1011
1009
1012
1010
# if input is define read that input
1013
1011
if isinstance (finput , (file , str , StringIO .StringIO )):
1014
1012
self .read (finput , ** opt )
1015
-
1016
-
1017
-
1018
-
1019
- def plugin_input (self , finput = None ):
1020
- pass
1021
1013
1022
1014
1023
1015
def default_setup (self ):
@@ -2654,26 +2646,6 @@ class RunCard(ConfigFile):
2654
2646
donewarning = []
2655
2647
include_as_parameter = []
2656
2648
2657
- def plugin_input (self , finput ):
2658
-
2659
- if not finput and not MADEVENT :
2660
- return
2661
- curr_dir = None
2662
- if isinstance (finput , file ):
2663
- # expected path to be like "XXXX/Cards/run_card.dat"
2664
- curr_dir = os .path .dirname (os .path .dirname (finput .name ))
2665
- elif isinstance (finput , str ):
2666
- curr_dir = os .path .dirname (os .path .dirname (finput ))
2667
-
2668
- if curr_dir :
2669
- if os .path .exists (pjoin (curr_dir , 'bin' , 'internal' , 'plugin_run_card' )):
2670
- # expected format {} passing everything as optional argument
2671
- for line in open (pjoin (curr_dir , 'bin' , 'internal' , 'plugin_run_card' )):
2672
- if line .startswith ('#' ):
2673
- continue
2674
- opts = dict (eval (line ))
2675
- self .add_param (** opts )
2676
-
2677
2649
@classmethod
2678
2650
def fill_post_set_from_blocks (cls ):
2679
2651
"""set the post_set function for any parameter defined in a run_block"""
0 commit comments