Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created April 13, 2020 18:36
Show Gist options
  • Save BetterProgramming/04058308253e404b4709b22db3fb3b5b to your computer and use it in GitHub Desktop.
Save BetterProgramming/04058308253e404b4709b22db3fb3b5b to your computer and use it in GitHub Desktop.
shared_lib_path = "./add.so"
if platform.startswith('win32'):
shared_lib_path = "./add.dll"
try:
add_lib = CDLL(shared_lib_path)
print("Successfully loaded ", add_lib)
except Exception as e:
print(e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment