Check filename extension and fill relevant options
Definition at line 19 of file AthOptionsParser.py.
◆ __call__()
| python.AthOptionsParser.JobOptAction.__call__ |
( |
| self, |
|
|
| parser, |
|
|
| args, |
|
|
| values, |
|
|
| option_string = None ) |
Definition at line 21 of file AthOptionsParser.py.
21 def __call__(self, parser, args, values, option_string=None):
22 scripts = [f for f in values if f[-3:] == '.py']
23 pkls = [f for f in values if f[-4:] == '.pkl']
24
25 if (scripts and pkls) or len(pkls)>1:
26 raise ValueError('Only job options or one pickle file is allowed')
27
28 setattr(args, self.dest, scripts)
29 args.fromdb = pkls[0] if pkls else None
30
31
◆ dest
| python.AthOptionsParser.JobOptAction.dest |
The documentation for this class was generated from the following file: