Created
April 13, 2020 18:36
-
-
Save BetterProgramming/04058308253e404b4709b22db3fb3b5b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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