Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/src/nemo-python.c b/src/nemo-python.c 2index 8d2acdb..900811b 100644 3--- a/src/nemo-python.c 4+++ b/src/nemo-python.c 5@@ -255,6 +255,7 @@ nemo_module_initialize(GTypeModule *module) 6 { 7 gchar *user_extensions_dir; 8 const gchar *env_string; 9+ const gchar *python_extensiondir; 10 11 env_string = g_getenv("NEMO_PYTHON_DEBUG"); 12 if (env_string != NULL) 13@@ -269,8 +270,12 @@ nemo_module_initialize(GTypeModule *module) 14 15 all_types = g_array_new(FALSE, FALSE, sizeof(GType)); 16 17- // Look in the new global path, $DATADIR/nemo-python/extensions 18- nemo_python_load_dir(module, PYTHON_EXTENSION_DIR); 19+ // Look in NEMO_PYTHON_EXTENSION_DIR 20+ python_extensiondir = g_getenv("NEMO_PYTHON_EXTENSION_DIR"); 21+ if (python_extensiondir == NULL) { 22+ python_extensiondir = PYTHON_EXTENSION_DIR; 23+ } 24+ nemo_python_load_dir(module, python_extensiondir); 25 26 // Look in XDG_DATA_DIR, ~/.local/share/nemo-python/extensions 27 user_extensions_dir = g_build_filename(g_get_user_data_dir(),