Skip to content

Commit

Permalink
Try to detect platform and use that to pre/suffix the shared library …
Browse files Browse the repository at this point in the history
…object

Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
TheNeikos authored and ralfbiedert committed Nov 25, 2024
1 parent 29cf59e commit cc3996f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests/tests/cpython_reference_project/common.py
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
DLL = "../../../target/debug/interoptopus_reference_project.dll"
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

0 comments on commit cc3996f

Please sign in to comment.