Skip to content

Commit

Permalink
Fix (Failed) | sys excutable
Browse files Browse the repository at this point in the history
  • Loading branch information
LxHTT committed Mar 17, 2024
1 parent a9a6119 commit 1a17c40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions MEFrp-Launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ def notify(self, a0: QObject, a1: QEvent) -> bool:
initMELauncherConfig()
del initMELauncherConfig

from MELauncherLib.AppController.Settings import cfg
cfg.set(cfg.oldExecuteable, sys.executable.split("\\")[-1])
del cfg

MEApplication.setHighDpiScaleFactorRoundingPolicy(
Qt.HighDpiScaleFactorRoundingPolicy.PassThrough
)
Expand Down
1 change: 0 additions & 1 deletion MELauncherLib/AppController/Settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ def initMELauncherConfig():
if cfg.get(cfg.isFirstGuideFinished):
return
cfg.set(cfg.isFirstGuideFinished, False)
cfg.set(cfg.oldExecuteable, osp.basename(sys.executable))
cfg.set(cfg.userName, "")
cfg.set(cfg.userPassword, "")
cfg.set(cfg.userAuthorization, "")
Expand Down

0 comments on commit 1a17c40

Please sign in to comment.