Skip to content
Snippets Groups Projects
Commit c13d9734 authored by Hal Finkel's avatar Hal Finkel
Browse files

Fixup genericio python to be more path independent

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