Skip to content

Commit

Permalink
Expand ~ path for user home dir
Browse files Browse the repository at this point in the history
  • Loading branch information
TorecLuik committed Jan 29, 2025
1 parent 0acc769 commit a7da39a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions biomero/slurm_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7da39a

Please sign in to comment.