浏览代码

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 年之前
父节点
当前提交
3f297f6bbb
共有 1 个文件被更改,包括 1 次插入1 次删除
  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");