Commit c13d9734 authored by Hal Finkel's avatar Hal Finkel
Browse files

Fixup genericio python to be more path independent

parent 63c7ac7d
......@@ -38,7 +38,7 @@
# *****************************************************************************
import sys
import gio
import genericio as gio
name = sys.argv[1]
gio.gio_inspect(name)
......
......@@ -42,8 +42,8 @@ import ctypes as ct
import os
#Define where the library is and load it
_path = os.path.dirname('__file__')
libpygio = ct.CDLL(os.path.abspath('../frontend/libpygio.so'))
_path = os.path.dirname(__file__)
libpygio = ct.CDLL(_path + '/../frontend/libpygio.so')
#we need to define the return type ("restype") and
#the argument types
libpygio.get_elem_num.restype=ct.c_int64
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment