Closed GiulioRomualdi closed 2 years ago
Unfortunately #149 was not enough. Thanks to @Nicogene I noticed that path returned by get_models_path() was still not existing ðŸ˜
get_models_path()
First of all, there was a bug in the construction of the PYTHON_ABSOLUTE_INSTDIR in the CMakeLists.txt file (fixed in https://github.com/robotology/icub-models/commit/664e5af75d8ea3488615431131e1c2b40e5ab88a)
PYTHON_ABSOLUTE_INSTDIR
CMakeLists.txt
Then I noticed that pathlib.Path(__file__) points to the file location and not to the folder containing the file. This fixes the problem 9366eb85318eb83576a8d5c2d72a0b155ee3da7d
pathlib.Path(__file__)
@Nicogene could you please check if this solves your issue?
Unfortunately #149 was not enough. Thanks to @Nicogene I noticed that path returned by
get_models_path()
was still not existing ðŸ˜First of all, there was a bug in the construction of the
PYTHON_ABSOLUTE_INSTDIR
in theCMakeLists.txt
file (fixed in https://github.com/robotology/icub-models/commit/664e5af75d8ea3488615431131e1c2b40e5ab88a)Then I noticed that
pathlib.Path(__file__)
points to the file location and not to the folder containing the file. This fixes the problem 9366eb85318eb83576a8d5c2d72a0b155ee3da7d@Nicogene could you please check if this solves your issue?