Created
November 23, 2023 14:05
-
-
Save reisjr/b52137b59beb5417dedf2ca30d844205 to your computer and use it in GitHub Desktop.
A simple home for project config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
import os | |
def make_temp_dir(temp_dir): | |
try: | |
os.makedirs(temp_dir, exist_ok=True) | |
except OSError: | |
pass | |
HOME_DIR = str(Path.home()) | |
PROJECT_NAME = "" | |
TEMP_DIR = f"{HOME_DIR}/.{PROJECT_NAME}" | |
make_temp_dir(TEMP_DIR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment