base structure

This commit is contained in:
2025-03-23 01:40:02 +03:00
parent e481107444
commit b6ca2f7d7a
5 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1 @@
from .i18n import I18N

View File

@@ -0,0 +1,4 @@
class I18N:
def __init__(self, lock_dir, load_lang):
pass

View File

@@ -0,0 +1,13 @@
import sys
from pathlib import Path
def base_path():
# PyInstaller creates a temp folder and stores path in _MEIPASS
try:
# noinspection PyUnresolvedReferences,PyProtectedMember
return Path(sys._MEIPASS).resolve()
except AttributeError:
return Path().resolve()
def get_file(filename):
return base_path() / "resources" / filename