File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
tests/packages/repair_wheel/python/repair_wheel Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3+ import platform
34import subprocess
45import sys
56from pathlib import Path
89def run () -> None :
910 exe_path = Path (__file__ ).parent
1011 exe_path = next ((exe_path / "bin" ).glob ("main*" ))
12+ print (f"[Before] sys.path = { sys .path } " )
13+ if platform .system () == "Windows" :
14+ import os
15+
16+ base_project_bindir = Path (__file__ ).parent / "../base_project/bin"
17+ project_bindir = Path (__file__ ).parent / "bin"
18+ os .add_dll_directory (str (base_project_bindir )) # type: ignore[attr-defined]
19+ os .add_dll_directory (str (project_bindir )) # type: ignore[attr-defined]
20+ print (f"[After] sys.path = { sys .path } " )
1121 sys .exit (subprocess .call ([str (exe_path ), * sys .argv [2 :]]))
1222
1323
You can’t perform that action at this time.
0 commit comments