From a3123ce480ea19dfe710af9ed093a0209440a37c Mon Sep 17 00:00:00 2001 From: Muayyad alsadi Date: Fri, 10 Dec 2021 22:27:00 +0200 Subject: [PATCH] #222: normalize basedir using os.path.realpath --- podman_compose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/podman_compose.py b/podman_compose.py index 7a39366..5222a22 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -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