Skip to content

Commit

Permalink
feat: allow environment variables in string values of profile (e.g. p…
Browse files Browse the repository at this point in the history
…aths may now contain elements like $USER).
  • Loading branch information
johanneskoester committed Nov 15, 2023
1 parent 6efcd2b commit 58dc70c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snakemake/cli.py
Expand Up @@ -283,6 +283,7 @@ def get_config_min_major(filename):


def get_profile_file(profile_dir: Path, file, return_default=False):
file = os.path.expandvars(file)
p = profile_dir / file
# "file" can actually be a full command. If so, `p` won't exist as the
# below would check if e.g. '/path/to/profile/script --arg1 val --arg2'
Expand Down

0 comments on commit 58dc70c

Please sign in to comment.