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
when defined(windows):
const libPath = "pixie.dll"
const libName = "pixie.dll"
elif defined(macosx):
const libPath = "libpixie.dylib"
const libName = "libpixie.dylib"
else:
const libPath = "libpixie.so"
const libName = "libpixie.so"
{.push dynlib: libPath.}
{.push dynlib: libName.}
type PixieError = object of ValueError

View file

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