Przeglądaj źródła

app_python: use NAME compile flag for default path to the script

- reflects better the application name

(cherry picked from commit 6ae155ee8ebc0d52fd63f208e57808c1d228f7e0)
(cherry picked from commit 768be33037f8eefeb3a841e030d3bb3f1be4bb9e)
Daniel-Constantin Mierla 10 lat temu
rodzic
commit
3f297f6bbb
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      modules/app_python/python_mod.c

+ 1 - 1
modules/app_python/python_mod.c

@@ -40,7 +40,7 @@
 MODULE_VERSION
 
 
-static str script_name = str_init("/usr/local/etc/sip-router/handler.py");
+static str script_name = str_init("/usr/local/etc/" NAME "/handler.py");
 static str mod_init_fname = str_init("mod_init");
 static str child_init_mname = str_init("child_init");