USER_CONFIG_DIR=os.path.join(os.path.expanduser("~"),".openflexure")#: str: Default path of the user-config directory, containing runtime-config and calibration files. Obtained from ``os.path.join(os.path.expanduser("~"), ".openflexure")``.
USER_CONFIG_FILE=os.path.join(USER_CONFIG_DIR,"microscoperc.yaml")#: str: Default path of the user microscoperc.yaml runtime-config file. Obtained from ``os.path.join(USER_CONFIG_DIR, "microscoperc.yaml")``
withopen(DEFAULT_CONFIG_PATH,'r')asdefaultrc:
DEFAULT_CONFIG=defaultrc.read()
withopen(DEFAULT_CONFIG_PATH,'r')asdefault_rc:
DEFAULT_CONFIG=default_rc.read()
classOpenflexureConfig():
expandable_keys=[
'picamera_settings',
'openflexure_stage_settings',
]#: List of keys that can be passed as a file path string and expanded automatically