Keep chdir after loading env file

Signed-off-by: BugFest <bugfest.dev@pm.me>
This commit is contained in:
BugFest 2023-04-10 11:46:47 +02:00 committed by Muayyad Alsadi
parent 59a59c1a3a
commit 91bc6ebdb4

View File

@ -1533,6 +1533,9 @@ class PodmanCompose:
dotenv_path = os.path.realpath(args.env_file)
dotenv_dict = dotenv_to_dict(dotenv_path)
# TODO: remove next line
os.chdir(dirname)
os.environ.update(
{
key: value