minhee
minhee

Reputation: 5828

Portable way to load the C standard library in Python ctypes

Is there a portable way to load the C standard library (libc.so, libc.dylib) in Python ctypes? Should I just use if/elif statements about the result of platform.system() function?

Upvotes: 10

Views: 771

Answers (1)

David Heffernan
David Heffernan

Reputation: 613053

The ctypes library doesn't offer anything of that nature so an if statement is just what you need.

Upvotes: 1

Related Questions