mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-24 07:49:48 +05:30
Removed path manipulations for single absolute path to build location of .so
This commit is contained in:
parent
f34289def9
commit
27a43e5943
@ -1,13 +1,18 @@
|
|||||||
import ctypes, os, sys
|
import ctypes, os, sys
|
||||||
|
|
||||||
def loadlibc():
|
def loadlibc():
|
||||||
sharedlib = './lib3ddevil1.so'
|
|
||||||
libc = None
|
libc = None
|
||||||
os.environ['PATH'] = os.path.abspath(
|
# os.environ['PATH'] = os.path.abspath(
|
||||||
os.path.join(
|
# os.path.join(
|
||||||
os.path.dirname(__file__), "../")) \
|
# os.path.dirname(__file__), "../")) \
|
||||||
+ ';' \
|
# + ';' \
|
||||||
+ os.environ['PATH']
|
# + os.environ['PATH']
|
||||||
|
# __file__ is this __init__.py
|
||||||
|
# This assumes that the repo's directory has not been modified
|
||||||
|
# and that
|
||||||
|
so = '/lib3ddevil1.so'
|
||||||
|
libdir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))
|
||||||
|
sharedlib = libdir + so
|
||||||
try:
|
try:
|
||||||
libc = ctypes.cdll.LoadLibrary(sharedlib)
|
libc = ctypes.cdll.LoadLibrary(sharedlib)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user