File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 40
40
# where to search for DLLs towards both DPNP backend and DPCTL Sycl interface,
41
41
# otherwise DPNP import will be failing. This is because the libraries
42
42
# are not installed under any of default paths where Python is searching.
43
- from platform import system
44
-
45
- if system () == "Windows" : # pragma: no cover
46
- if hasattr (os , "add_dll_directory" ):
47
- os .add_dll_directory (mypath )
48
- os .add_dll_directory (dpctlpath )
49
43
44
+ if sys .platform == "win32" : # pragma: no cover
45
+ os .add_dll_directory (mypath )
46
+ os .add_dll_directory (dpctlpath )
50
47
os .environ ["PATH" ] = os .pathsep .join (
51
48
[os .getenv ("PATH" , "" ), mypath , dpctlpath ]
52
49
)
53
-
54
50
# For virtual environments on Windows, add folder with DPC++ libraries
55
51
# to the DLL search path
56
52
if sys .base_exec_prefix != sys .exec_prefix and os .path .isfile (
You can’t perform that action at this time.
0 commit comments