Skip to content

Commit

Permalink
修复绝对路径运行导致的各种问题 (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Jan 10, 2024
1 parent b1c48b4 commit 39a6eb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
from PyQt5.QtWidgets import QApplication
from PyQt5.QtCore import Qt, QTranslator

os.chdir(os.path.dirname(os.path.abspath(__file__)))

from app.common.config import cfg
from app.view.main_window import MainWindow


if __name__ == '__main__':
os.chdir(os.path.dirname(__file__))


if cfg.get(cfg.dpiScale) == "Auto":
QApplication.setHighDpiScaleFactorRoundingPolicy(
Expand Down

0 comments on commit 39a6eb8

Please sign in to comment.