Skip to content

Commit

Permalink
fixed path interpret if arg was not resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
atiderko committed Dec 14, 2023
1 parent b11255c commit f387f42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fkie_multimaster_pylib/fkie_multimaster_pylib/launch/xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,9 @@ def find_included_files(string: str,
# try to resolve path
fname = replace_arg(fname, resolve_args_all)
fname = replace_arg(fname, resolve_args_intern)
fname = interpret_path(fname, pwd)
if fname.find('$(arg ') == -1:
# do not try to resolve if not all args are replaced
fname = interpret_path(fname, pwd)
except Exception as err:
Log.warn(f"Interpret file failed: {err}")
if os.path.isdir(fname):
Expand Down

0 comments on commit f387f42

Please sign in to comment.