f
This commit is contained in:
parent
6aaf1b01c6
commit
afad8ccb84
2 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue