From efb7c427243e13725d88a10c59e2093fa6251e90 Mon Sep 17 00:00:00 2001 From: --global <--global> Date: Wed, 14 Dec 2022 13:56:42 -0600 Subject: [PATCH] Add cwd to fix relative paths --- composer.py | 2 ++ re_compose.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/composer.py b/composer.py index 6aa5ff3..5d962b8 100644 --- a/composer.py +++ b/composer.py @@ -11,6 +11,8 @@ compose_path = config.readline() compose_path = compose_path[compose_path.find('=')+1:].strip() if compose_path[-1:] != '/': compose_path += '/' +if compose_path[1] != '/': + compose_path = f'{working_dir}/{compose_path}' exclude_containers = config.readline() exclude_containers = [container.strip() for container \ diff --git a/re_compose.py b/re_compose.py index 020a66f..4c230bd 100644 --- a/re_compose.py +++ b/re_compose.py @@ -11,6 +11,8 @@ compose_path = config.readline() compose_path = compose_path[compose_path.find('=')+1:].strip() if compose_path[-1:] != '/': compose_path += '/' +if compose_path[1] != '/': + compose_path = f'{working_dir}/{compose_path}' exclude_containers = config.readline() exclude_containers = [container.strip() for container \