cave-story-randomizer/pre_edited_cs/__init__.py
2021-12-08 00:12:16 -06:00

11 lines
221 B
Python

import sys
from pathlib import Path
def get_path() -> Path:
if getattr(sys, "frozen", False):
file_dir = Path(getattr(sys, "_MEIPASS"))
else:
file_dir = Path(__file__).parent
return file_dir