This repository has been archived on 2025-01-10. You can view files and clone it, but cannot push or open issues or pull requests.
2025-01-09 23:01:07 +01:00

20 lines
356 B
Python

from argparse import ArgumentParser
from os import getenv
from pathlib import Path
from dotenv import load_dotenv
load_dotenv()
parser = ArgumentParser()
parser.add_argument(
"cache",
type=Path,
nargs="?",
default=getenv("GAMECOVER_CACHE_FOLDER"),
help="path to cache directory",
)
args = parser.parse_args()
CACHE_DIR = args.cache