diff --git a/tests/tests/cpython_reference_project/common.py b/tests/tests/cpython_reference_project/common.py index 549288a..9d406fe 100644 --- a/tests/tests/cpython_reference_project/common.py +++ b/tests/tests/cpython_reference_project/common.py @@ -1 +1,16 @@ -DLL = "../../../target/debug/interoptopus_reference_project.dll" \ No newline at end of file +import platform + +if platform.uname()[0] == "Linux": + prefix = "lib" +else: + prefix = "" + + +if platform.uname()[0] == "Windows": + suffix = ".dll" +elif platform.uname()[0] == "Linux": + suffix = ".so" +else: + suffix = "" + +DLL = "../../../target/debug/" + prefix + "interoptopus_reference_project" + suffix