Skip to content

Commit

Permalink
progress_bar_info: Adds info to silently done things when loading plu…
Browse files Browse the repository at this point in the history
…gins.
  • Loading branch information
lakodarmstadt committed Oct 26, 2018
1 parent 50657ba commit 27ece19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def get_callbacks(name):
# If so lets add it to the config
if not module_name in [name for name, val in exp_config.items('BLACS/plugins')]:
exp_config.set('BLACS/plugins', module_name, str(module_name in default_plugins))
logger.info('The following plugin was added to the labconfig-file: ' + module_name)

# only load activated plugins
if exp_config.getboolean('BLACS/plugins', module_name):
Expand All @@ -100,3 +101,6 @@ def get_callbacks(name):
logger.exception('Could not import plugin \'%s\'. Skipping.'%module_name)
else:
modules[module_name] = module
for module_name in [name for name, val in exp_config.items('BLACS/plugins')]:
if (not module_name in os.listdir(PLUGINS_DIR) and module_name not in [name for name, val in exp_config.items('DEFAULT')]):
logger.info('The following plugin cannot be loaded:' + module_name)

0 comments on commit 27ece19

Please sign in to comment.