(self)
| 439 | |
| 440 | # Expose arguments as class attributes |
| 441 | def setAttributes(self): |
| 442 | # Set attributes from arguments |
| 443 | if self.arguments: |
| 444 | args = vars(self.arguments) |
| 445 | for key, val in args.items(): |
| 446 | if type(val) is list: |
| 447 | val = val[:] |
| 448 | if key in ("data_dir", "log_dir"): |
| 449 | val = val.replace("\\", "/") |
| 450 | setattr(self, key, val) |
| 451 | |
| 452 | def loadPlugins(self): |
| 453 | from Plugin import PluginManager |