fix: correct issues with python3 no longer being available by default

This commit is contained in:
Jose Diaz-Gonzalez
2024-09-22 01:02:14 -04:00
parent 880f32f4e2
commit 71b28721f7
4 changed files with 28 additions and 3 deletions

View File

@@ -5,7 +5,8 @@ import os
def main():
print("GLOBAL_SECRET: {0}".format(os.getenv('GLOBAL_SECRET')))
print("SECRET_KEY: {0}".format(os.getenv('SECRET_KEY')))
with open("/app/.env", "r") as f:
app_dir = os.getcwd()
with open(f"{app_dir}/.env", "r") as f:
for line in f.readlines():
if "DOTENV_KEY" in line:
print(line)