Skip to content

Instantly share code, notes, and snippets.

@reisjr
Created November 23, 2023 14:05
Show Gist options
  • Save reisjr/b52137b59beb5417dedf2ca30d844205 to your computer and use it in GitHub Desktop.
Save reisjr/b52137b59beb5417dedf2ca30d844205 to your computer and use it in GitHub Desktop.
A simple home for project config
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