diff --git a/python/example.py b/python/example.py index 7d90f2826bc9017bc9ab434cba95d69acce280d7..d4c2d9eebc0d86737cf9d0914c3325caa8df8109 100644 --- a/python/example.py +++ b/python/example.py @@ -38,7 +38,7 @@ # ***************************************************************************** import sys -import gio +import genericio as gio name = sys.argv[1] gio.gio_inspect(name) diff --git a/python/gio.py b/python/genericio.py similarity index 97% rename from python/gio.py rename to python/genericio.py index a37a8fc36db0efd0be397a98bd698f45c201d71c..7e946142790b8239b033cd7cc41d4e68f0f991cb 100644 --- a/python/gio.py +++ b/python/genericio.py @@ -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