summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf_validation.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-11-29 18:48:55 +0300
committerMax Romanov <max.romanov@nginx.com>2017-11-29 18:48:55 +0300
commit3781950badda9a937fdfaac25013006d9e106c67 (patch)
tree1f0109218ecfcb1dd9affc65b3fa8ee904e067c3 /src/nxt_conf_validation.c
parentec4ad8780e0afd7416c7ba7c32a1936e646cc286 (diff)
downloadunit-3781950badda9a937fdfaac25013006d9e106c67.tar.gz
unit-3781950badda9a937fdfaac25013006d9e106c67.tar.bz2
Introducing python virtualenv configuration.
New parameter 'home' for python application allows to configure application-specific virtualenv path. This closes #15 issue on GitHub.
Diffstat (limited to 'src/nxt_conf_validation.c')
-rw-r--r--src/nxt_conf_validation.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c
index 80bfa885..cc2ce5ef 100644
--- a/src/nxt_conf_validation.c
+++ b/src/nxt_conf_validation.c
@@ -118,6 +118,11 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_python_members[] = {
NULL,
NULL },
+ { nxt_string("home"),
+ NXT_CONF_STRING,
+ NULL,
+ NULL },
+
{ nxt_string("path"),
NXT_CONF_STRING,
NULL,
@@ -545,3 +550,5 @@ nxt_conf_vldt_group(nxt_conf_validation_t *vldt, char *group)
return NXT_ERROR;
}
+
+