diff options
| author | altaf-creator <dev@altafcreator.com> | 2026-06-19 22:43:58 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2026-06-19 22:43:58 +0800 |
| commit | e1f46542d7a1d7df57f02b7a1b920ccfe466fba6 (patch) | |
| tree | be0e5a9c52590b84143c9599ecb4737af0a0efc6 /main.py | |
| parent | b9545616acc0a00cfed9e5023dff8e1c33c9f6e4 (diff) | |
env and pycache remove
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -9,10 +9,13 @@ from pathlib import Path import html from bs4 import BeautifulSoup import datetime +from dotenv import load_dotenv +from os import getenv print("Hello, world!") +load_dotenv() -FOLDER_PATH = Path("/Users/altaf/").resolve() +FOLDER_PATH = Path(getenv("FOLDER_PATH").encode("utf-8")).resolve() # FOLDER_PATH = "/var/files" app = fastapi.FastAPI(title="altaf-files", decscription="altaf-files backend", version="1.0") |
