From c151fd6910ab81e355e5640f1407d1ae3ff805b4 Mon Sep 17 00:00:00 2001 From: askiiart <90910526+askiiart@users.noreply.github.com> Date: Tue, 13 Dec 2022 07:37:08 -0600 Subject: [PATCH] Started - saving work --- scripts/composer.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/composer.py b/scripts/composer.py index e69de29..87a3561 100644 --- a/scripts/composer.py +++ b/scripts/composer.py @@ -0,0 +1,13 @@ +import os + +config = open('.config', 'rt') + +compose-path = config.readline() +compose-path = compose-path[compose-path.find('=')+1:] +if compose-path[-1:] != '/': + compose-path += '/' + +exclude-containers = config.readline() +exclude-containers = exclude-containers[exclude-containers.find('=')+1:].split(',') + +compose-paths = [compose-path + dir for dir in os.listdir(compose-path)]