WIP: Fix running from build directory
On OSX, running from the build directory was broken for standalone applications because the kiface libraries are actually placed into the main bundle under kicad/kicad.app
instead of in their build folder. This broke all the detection logic for where the kiface files are located. This changes the running from build directory to instead use configure-time generated paths that point to the kiface libraries instead of run-time generated paths that augment the existing ones. This change should have no effect when running in release mode, or outside of the build directory (e.g. with the environment variable KICAD_RUN_FROM_BUILD_DIR
undefined).
Current parts working are:
-
kiface loading from build directory -
Launching pleditor/bitmap2component/gerbview/pcb_calculator from project window in build directory -
Loading appropriate Python library from build directory -
Loading 3D viewer plugins from build directory