diff --git a/biomero/slurm_client.py b/biomero/slurm_client.py index 55ff6c1..1931b2c 100644 --- a/biomero/slurm_client.py +++ b/biomero/slurm_client.py @@ -889,9 +889,9 @@ def from_config(cls, configfile: str = '', # Load the configuration file configs = configparser.ConfigParser(allow_no_value=True) # Loads from default locations and given location, missing files are ok - configs.read([cls._DEFAULT_CONFIG_PATH_1, - cls._DEFAULT_CONFIG_PATH_2, - configfile]) + configs.read([os.path.expanduser(cls._DEFAULT_CONFIG_PATH_1), + os.path.expanduser(cls._DEFAULT_CONFIG_PATH_2), + os.path.expanduser(configfile)]) # Read the required parameters from the configuration file, # fallback to defaults