Changeset c13d973 for python


Ignore:
Timestamp:
08/29/16 10:47:09 (8 years ago)
Author:
Hal Finkel <hfinkel@…>
Branches:
master, pympi
Children:
fb69232
Parents:
63c7ac7
git-author:
Hal Finkel <hfinkel@…> (08/29/16 10:47:09)
git-committer:
Hal Finkel <hfinkel@…> (08/29/16 10:47:09)
Message:

Fixup genericio python to be more path independent

Location:
python
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • python/example.py

    r63c7ac7 rc13d973  
    3939 
    4040import sys 
    41 import gio 
     41import genericio as gio 
    4242 
    4343name = sys.argv[1] 
  • python/genericio.py

    ref727a6 rc13d973  
    4343 
    4444#Define where the library is and load it 
    45 _path = os.path.dirname('__file__') 
    46 libpygio = ct.CDLL(os.path.abspath('../frontend/libpygio.so')) 
     45_path = os.path.dirname(__file__) 
     46libpygio = ct.CDLL(_path + '/../frontend/libpygio.so') 
    4747#we need to define the return type ("restype") and 
    4848#the argument types 
Note: See TracChangeset for help on using the changeset viewer.