Skip to content

Commit 07b8903

Browse files
chezouclaude
andcommitted
Debug: add file existence check for Windows model path
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dd2c10f commit 07b8903

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/test-wheel.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,21 @@
99
import Mykytea
1010

1111
# Test 3: Run tokenization with model
12+
import os
13+
1214
opt = "-deftag UNKNOWN!!"
1315
if "--model" in sys.argv:
14-
import os
1516
model_path = os.path.normpath(sys.argv[sys.argv.index("--model") + 1])
17+
print(f"Model path: {model_path}")
18+
print(f"File exists: {os.path.exists(model_path)}")
19+
if os.path.exists(model_path):
20+
print(f"File size: {os.path.getsize(model_path)}")
21+
# List files in the directory to debug
22+
model_dir = os.path.dirname(model_path)
23+
print(f"Files matching model* in {model_dir}:")
24+
for f in os.listdir(model_dir):
25+
if f.startswith("model"):
26+
print(f" {f} ({os.path.getsize(os.path.join(model_dir, f))})")
1627
opt += f" -model {model_path}"
1728

1829
mk = Mykytea.Mykytea(opt)

0 commit comments

Comments
 (0)