Python remote API: lib loading

Report crashes, strange behaviour, or apparent bugs
Post Reply
Steve

Python remote API: lib loading

Post by Steve »

The library loading fails (at least for linux) due to a path problem.
The error is:
libsimx = CDLL("./remoteApi.so")
while the remoreApi.so cannot be found (it is not in the same folder).
I did a dirty hack in order make a relative import:
import os
s = os.path.dirname(os.path.abspath(__file__))
libsimx = CDLL(s + "/../../../remoteApiBindings/lib/lib/64Bit/remoteApi.so")
but I think something cleaner should be done.

(Vrep version: V3_1_2_64 linux)

Post Reply