This commit is contained in:
Ryan Oldenburg 2021-08-26 22:36:02 -05:00
parent 6aaf1b01c6
commit afad8ccb84
2 changed files with 8 additions and 8 deletions

View file

@ -3,13 +3,13 @@ import bumpy, chroma, unicode, vmath
export bumpy, chroma, unicode, vmath export bumpy, chroma, unicode, vmath
when defined(windows): when defined(windows):
const libPath = "pixie.dll" const libName = "pixie.dll"
elif defined(macosx): elif defined(macosx):
const libPath = "libpixie.dylib" const libName = "libpixie.dylib"
else: else:
const libPath = "libpixie.so" const libName = "libpixie.so"
{.push dynlib: libPath.} {.push dynlib: libName.}
type PixieError = object of ValueError type PixieError = object of ValueError

View file

@ -6,12 +6,12 @@ src_path = Path(__file__).resolve()
src_dir = str(src_path.parent) src_dir = str(src_path.parent)
if sys.platform == "win32": if sys.platform == "win32":
libPath = "pixie.dll" libName = "pixie.dll"
elif sys.platform == "darwin": elif sys.platform == "darwin":
libPath = "libpixie.dylib" libName = "libpixie.dylib"
else: else:
libPath = "libpixie.so" libName = "libpixie.so"
dll = cdll.LoadLibrary(src_dir + "/" + libPath) dll = cdll.LoadLibrary(src_dir + "/" + libName)
class PixieError(Exception): class PixieError(Exception):
pass pass