Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the python package when installed from cmake #150

Merged
merged 3 commits into from
Apr 7, 2022
Merged

Conversation

GiulioRomualdi
Copy link
Member

@GiulioRomualdi GiulioRomualdi commented Apr 7, 2022

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 the CMakeLists.txt file (fixed in 664e5af)

Then I noticed that pathlib.Path(__file__) points to the file location and not to the folder containing the file. This fixes the problem 9366eb8

@Nicogene could you please check if this solves your issue?

Copy link
Member

@Nicogene Nicogene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested on my machine and now it works both inside and outside the build directory!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants