Skip to content

Commit 1d48998

Browse files
Zayn995claude
andcommitted
Self-test: compare resolved paths (the CI starts the copy via an 8.3 short path)
CI run 33961255379: the signature check passed, and the self-test then failed on app_dir() == APP_DIR because sys.executable came as C:\Users\RUNNER~1\... while APP_DIR was the resolved long path. Same folder, two spellings. Verified locally by starting the folder through its 8.3 name. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 5c9aa92 commit 1d48998

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tools/launcher.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@ def _selftest(report: Path) -> None:
111111
lines.append("s2tweaker, customtkinter, darkdetect, packaging import OK")
112112

113113
from s2tweaker import gui, pakio
114-
assert gui.app_dir() == APP_DIR, gui.app_dir()
115-
assert pakio.app_dir() == APP_DIR, pakio.app_dir()
114+
# Compare resolved paths: sys.executable may carry an 8.3 short name
115+
# (C:\Users\RUNNER~1\...) when the folder was started via one.
116+
for name, got in (("gui", gui.app_dir()), ("pakio", pakio.app_dir())):
117+
assert Path(got).resolve() == APP_DIR, f"{name}.app_dir() = {got}"
116118
assert gui._asset("icon.ico").is_file(), gui._asset("icon.ico")
117119
assert gui._asset("help", "oodle_folder.png").is_file()
118120
repak = pakio.find_repak()

0 commit comments

Comments
 (0)