From fbe5a038e3a9d143f74e9e7ff1daa1bbc1a98e1e Mon Sep 17 00:00:00 2001 From: Unbit Date: Wed, 25 Jun 2014 10:02:46 +0200 Subject: [PATCH] added early-pythonpath support --- plugins/python/python_plugin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/python/python_plugin.c b/plugins/python/python_plugin.c index e82ac552..9ab4c671 100644 --- a/plugins/python/python_plugin.c +++ b/plugins/python/python_plugin.c @@ -196,6 +196,8 @@ struct uwsgi_option uwsgi_python_options[] = { {"early-python", no_argument, 0, "load the python VM as soon as possible (useful for the fork server)", uwsgi_early_python, NULL, UWSGI_OPT_IMMEDIATE}, {"early-pyimport", required_argument, 0, "import a python module in the early phase", uwsgi_early_python_import, NULL, UWSGI_OPT_IMMEDIATE}, {"early-python-import", required_argument, 0, "import a python module in the early phase", uwsgi_early_python_import, NULL, UWSGI_OPT_IMMEDIATE}, + {"early-pythonpath", required_argument, 0, "add directory (or glob) to pythonpath (immediate version)", uwsgi_opt_pythonpath, NULL, UWSGI_OPT_IMMEDIATE}, + {"early-python-path", required_argument, 0, "add directory (or glob) to pythonpath (immediate version)", uwsgi_opt_pythonpath, NULL, UWSGI_OPT_IMMEDIATE}, {0, 0, 0, 0, 0, 0, 0}, };