Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Buehlmann
GenericIO
Commits
c13d9734
Commit
c13d9734
authored
Aug 29, 2016
by
Hal Finkel
Browse files
Fixup genericio python to be more path independent
parent
63c7ac7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
python/example.py
View file @
c13d9734
...
...
@@ -38,7 +38,7 @@
# *****************************************************************************
import
sys
import
gio
import
genericio
as
gio
name
=
sys
.
argv
[
1
]
gio
.
gio_inspect
(
name
)
...
...
python/gio.py
→
python/g
eneric
io.py
View file @
c13d9734
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment