Skip to content

Commit 5f47786

Browse files
jnagi-intelankitm3k
authored andcommitted
Use absolute paths for libraries loaded with LOAD_WITH_ALTERED_SEARCH_PATH' (#602)
1 parent b850605 commit 5f47786

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxruntime/test/python/onnxruntime_test_python.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ def test_session_options_add_external_initializers(self):
13071307

13081308
def test_register_custom_ops_library(self):
13091309
if sys.platform.startswith("win"):
1310-
shared_library = "custom_op_library.dll"
1310+
shared_library = os.path.abspath("custom_op_library.dll")
13111311
if not os.path.exists(shared_library):
13121312
raise FileNotFoundError(f"Unable to find '{shared_library}'")
13131313

@@ -1724,7 +1724,7 @@ def test_register_custom_e_ps_library(self):
17241724
return
17251725

17261726
if sys.platform.startswith("win"):
1727-
shared_library = "test_execution_provider.dll"
1727+
shared_library = os.path.abspath("test_execution_provider.dll")
17281728

17291729
elif sys.platform.startswith("darwin"):
17301730
# exclude for macos

0 commit comments

Comments
 (0)