Skip to content

Commit

Permalink
Fix traceback when using cylc broadcast -F with a relative filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Jan 18, 2024
1 parent df4e17d commit 522564c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cylc/flow/scripts/broadcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
from ansimarkup import parse as cparse
from copy import deepcopy
from functools import partial
import os.path
import re
import sys
from tempfile import NamedTemporaryFile
Expand Down Expand Up @@ -203,7 +204,7 @@ def files_to_settings(settings, setting_files, cancel_mode=False):
handle.seek(0, 0)
cfg.loadcfg(handle.name)
else:
cfg.loadcfg(setting_file)
cfg.loadcfg(os.path.abspath(setting_file))
stack = [([], cfg.get(sparse=True))]
while stack:
keys, item = stack.pop()
Expand Down

0 comments on commit 522564c

Please sign in to comment.