From 9f26f53f4c36a69154aa51b3eb92ae195110d477 Mon Sep 17 00:00:00 2001 From: Xiada <69246170+XiadaOku@users.noreply.github.com> Date: Tue, 14 Dec 2021 16:28:35 +0300 Subject: [PATCH] add "." to the pythonpath for themes folder --- .gitignore | 1 + src/client/VMM.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8a8834e..0433fa8 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ src/launcher/save.json src/themes/classic_en/__pycache__/resource_rc.cpython-38.pyc src/themes/classic_ru/__pycache__/resource_rc.cpython-38.pyc src/themes/dark/__pycache__/resource_rc.cpython-38.pyc +src/launcher/build/launcher/launcher.pkg diff --git a/src/client/VMM.py b/src/client/VMM.py index b872fd1..3653de2 100644 --- a/src/client/VMM.py +++ b/src/client/VMM.py @@ -870,8 +870,8 @@ def comboModsChanged(self, text): def main(): - # Adding ".." to the PYTHONPATH for themes folder (resource_rc.py files) - # can be deleted actually because client version has themes in "." which is in path and for developers pycharm adds ".." to pythonpath... + # Adding "." and ".." to the PYTHONPATH for themes folder (resource_rc.py files) + sys.path.append(os.path.realpath(".")) sys.path.append(os.path.realpath("..")) # одномониторная недоподдержка high-dpi