#222: normalize basedir using os.path.realpath

This commit is contained in:
Muayyad alsadi 2021-12-10 22:27:00 +02:00
parent 02f78dc3d7
commit a3123ce480

View File

@ -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