diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-11-29 18:48:55 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-11-29 18:48:55 +0300 |
commit | 3781950badda9a937fdfaac25013006d9e106c67 (patch) | |
tree | 1f0109218ecfcb1dd9affc65b3fa8ee904e067c3 /src/nxt_main_process.c | |
parent | ec4ad8780e0afd7416c7ba7c32a1936e646cc286 (diff) | |
download | unit-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_main_process.c')
-rw-r--r-- | src/nxt_main_process.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c index 767d6063..68d50aa1 100644 --- a/src/nxt_main_process.c +++ b/src/nxt_main_process.c @@ -121,6 +121,12 @@ static nxt_conf_map_t nxt_common_app_conf[] = { }, { + nxt_string("home"), + NXT_CONF_MAP_CSTRZ, + offsetof(nxt_common_app_conf_t, u.python.home), + }, + + { nxt_string("path"), NXT_CONF_MAP_STR, offsetof(nxt_common_app_conf_t, u.python.path), |