appleseedhq / appleseed

A modern open source rendering engine for animation and visual effects
https://appleseedhq.net/
MIT License
2.19k stars 329 forks source link

Fix CMake paths Linux/static build #2906

Closed hikiko closed 3 years ago

hikiko commented 3 years ago

CMake installs the python files in <installation_dir>/lib/python2.7.

But in file: src/appleseed.studio/python/pythoninterpreter.cpp they are expected to be in <installation_dir>/lib/python (see "Compute path" code).

As a result when starting appleseed.studio they can't be found and the following warnings appear: Python's site-packages directory does not exist. appleseed Python module's directory does not exist. as well as errors for not properly imported modules in Python console.

Changed the paths in CMake to match the paths in pythoninterpreter.cpp.

dictoon commented 3 years ago

Thanks for the PR @hikiko! Much appreciated.