import os
from pathlib import Path
from dotenv import dotenv_values

os.environ = {
    **os.environ,
    **dotenv_values(".env.dev"),
    **dotenv_values(".env.prod")
}

print(os.environ.get("RAMONAK_PATH"))


RAMONAK_PATH = Path(os.environ.get("RAMONAK_PATH", os.path.join(
    os.path.expanduser("~"),
    ".alerus",
    "ramonak"
)))

PACKAGES_PATH = Path(RAMONAK_PATH, "packages")

for path in (RAMONAK_PATH, PACKAGES_PATH):
    path.mkdir(parents=True, exist_ok=True)

print(os.path.abspath(RAMONAK_PATH))

