mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-23 00:13:25 +01:00
#222: normalize basedir using os.path.realpath
This commit is contained in:
parent
02f78dc3d7
commit
a3123ce480
@ -112,7 +112,7 @@ def parse_short_mount(mount_str, basedir):
|
||||
# User-relative path
|
||||
# - ~/configs:/etc/configs/:ro
|
||||
mount_type = "bind"
|
||||
# TODO: should we use os.path.realpath(basedir)?
|
||||
basedir = os.path.realpath(basedir)
|
||||
mount_src = os.path.join(basedir, os.path.expanduser(mount_src))
|
||||
else:
|
||||
# Named volume
|
||||
|
Loading…
Reference in New Issue
Block a user