cmbruns / pyopenvr

Unofficial python bindings for Valve's OpenVR virtual reality SDK
BSD 3-Clause "New" or "Revised" License
251 stars 40 forks source link

Consider using pkgutil, instead of __file__ #3

Closed cmbruns closed 5 years ago

cmbruns commented 8 years ago

https://github.com/cmbruns/pyopenvr/blob/master/src/openvr/__init__.py#L18

https://www.reddit.com/r/Vive/comments/4iy1fr/new_python_bindings_for_vive_openvr_developer_sdk/d32aqyq

cmbruns-hhmi commented 8 years ago

I think shared libraries like OpenVR might NEED to be loaded from a regular file. So this is one instance where pkg_resources/pkgutil might not be better than file.