diff --git a/main.py b/main.py index b8662a1e..d42c19ec 100644 --- a/main.py +++ b/main.py @@ -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(