2021-12-08 06:12:16 +00:00
|
|
|
import sys
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
|
|
def get_path() -> Path:
|
|
|
|
if getattr(sys, "frozen", False):
|
|
|
|
file_dir = Path(getattr(sys, "_MEIPASS"))
|
|
|
|
else:
|
2021-12-08 07:04:06 +00:00
|
|
|
file_dir = Path(__file__).parent.parent
|
|
|
|
return file_dir.joinpath("pre_edited_cs")
|