Skip to content

Commit

Permalink
skip unset symdirs from global cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
datamel committed Jun 16, 2021
1 parent a53aa02 commit 8f0883c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cylc/flow/pathutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ def get_dirs_to_symlink(
if install_target not in symlink_conf.keys():
return dirs_to_symlink
base_dir = symlink_conf[install_target]["run"]
if base_dir is not None:
if base_dir not in [None, '']:
dirs_to_symlink['run'] = os.path.join(base_dir, 'cylc-run', flow_name)
for dir_ in ['log', 'share', 'share/cycle', 'work']:
link = symlink_conf[install_target].get(dir_, None)
if link is None or link == base_dir:
if link in [None, '', base_dir]:
continue
dirs_to_symlink[dir_] = os.path.join(link, 'cylc-run', flow_name, dir_)
return dirs_to_symlink
Expand Down
1 change: 0 additions & 1 deletion cylc/flow/scripts/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ def install(
cli_symdirs = {}
elif opts.symlink_dirs:
cli_symdirs = get_sym_dirs(opts.symlink_dirs)

source_dir, rundir, _flow_name = install_workflow(
flow_name=flow_name,
source=source,
Expand Down

0 comments on commit 8f0883c

Please sign in to comment.