Skip to content

Commit dba4763

Browse files
add expanduser
1 parent 7a4d798 commit dba4763

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lfric_macros/apply_macros.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,10 @@ def get_dependency_paths(self, source, repo):
335335
source = self.read_dependencies(repo)
336336

337337
# If the source exists as a path then return as is
338-
if os.path.exists(source):
338+
if os.path.exists(os.path.expanduser(source)):
339339
return source
340340
if ":" in source:
341-
source_path = source.split(":")[1]
341+
source_path = os.path.expanduser(source.split(":")[1])
342342
if os.path.exists(source_path):
343343
return source_path
344344

0 commit comments

Comments
 (0)