Skip to content

Commit

Permalink
add "." to the pythonpath for themes folder
Browse files Browse the repository at this point in the history
  • Loading branch information
XiadaOku committed Dec 14, 2021
1 parent fb28360 commit 9f26f53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions src/client/VMM.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f26f53

Please sign in to comment.