20 lines
356 B
Python
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
|