From 34ec4b3cb9489aea8dc3f6cf884dad4f0ac8cf37 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 aee7767..d8ce5e4 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