First draft of new API plugin system

This commit is contained in:
Joel Collins 2019-12-13 13:48:50 +00:00
parent 3a63f7d200
commit 477abb6970
9 changed files with 234 additions and 49 deletions

View file

@ -255,6 +255,7 @@ DEFAULT_CONFIG_FILE_PATH = os.path.join(HERE, "microscope_settings.default.json"
USER_CONFIG_DIR = os.path.join(os.path.expanduser("~"), ".openflexure")
USER_CONFIG_FILE_PATH = os.path.join(USER_CONFIG_DIR, "microscope_settings.json")
USER_PLUGINS_PATH = os.path.join(USER_CONFIG_DIR, "microscope_plugins", "__init__.py")
# Load the default config
with open(DEFAULT_CONFIG_FILE_PATH, "r") as default_rc: