Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1Author: Philip Taron <philip.taron@gmail.com> 2Date: Sat Jan 4 12:22:38 2025 -0800 3 4 fontforge: add an initial value for `sys.path` 5 6diff --git a/fontforge/python.c b/fontforge/python.c 7index e18d77d43..2e312eeb4 100644 8--- a/fontforge/python.c 9+++ b/fontforge/python.c 10@@ -19576,6 +19576,11 @@ void FontForge_InitializeEmbeddedPython(void) { 11 PyStatus status; 12 PyConfig_InitPythonConfig(&config); 13 14+ status = PyConfig_SetBytesString(&config, &config.pythonpath_env, "@python@"); 15+ if (PyStatus_Exception(status)) { 16+ fprintf(stderr, "Failed to set the Python search path: %s\n", status.err_msg); 17+ } 18+ 19 status = PyConfig_SetBytesString(&config, &config.program_name, 20 "fontforge"); 21 if (PyStatus_Exception(status)) {