Skip to content

Commit

Permalink
added new linux drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
jirhiker committed Apr 25, 2018
1 parent 8db0a69 commit bcd66cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,13 @@
lib = ctypes.cdll.LoadLibrary(os.path.join(root, 'osx', 'libtoupcam.dylib'))
else:
directory = 'x64' if sys.maxsize > 2 ** 32 else 'x84'
ext = 'lib' if sys.platform.startswith('linux') else 'dll'
lib = ctypes.windll.LoadLibrary(os.path.join(root, directory, 'toupcam.{}'.format(ext)))
# ext = 'lib' if sys.platform.startswith('linux') else 'dll'
if sys.platform.startswith('linux'):
name = 'libtoupcam.so'
lib = ctypes.cdll.LoadLibrary(os.path.join(root, directory, name))
else:
name = 'toupcam.dll'
lib = ctypes.windll.LoadLibrary(os.path.join(root, directory, name))


class HToupCam(ctypes.Structure):
Expand Down
Binary file added x64/libtoupcam.so
Binary file not shown.
Binary file added x86/libtoupcam.so
Binary file not shown.

0 comments on commit bcd66cc

Please sign in to comment.