mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-11-14 02:42:46 +00:00
11 lines
221 B
Python
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
|