diff options
author | Florian Dold <florian@dold.me> | 2023-02-24 14:38:46 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-24 14:38:57 +0100 |
commit | 62e2866a6eb33c1658d720193627a45cb50cc1e5 (patch) | |
tree | b814270d5768a2eed4549f47149f5bf6e4725a42 /talermerchantdemos/cli.py | |
parent | 245e2ae15c1f770bf6e8953fe951795a9d2461ea (diff) | |
download | taler-merchant-demos-62e2866a6eb33c1658d720193627a45cb50cc1e5.tar.gz taler-merchant-demos-62e2866a6eb33c1658d720193627a45cb50cc1e5.tar.bz2 taler-merchant-demos-62e2866a6eb33c1658d720193627a45cb50cc1e5.zip |
set venv path properly when invoking uwsgiv0.9.3-dev.1
Diffstat (limited to 'talermerchantdemos/cli.py')
-rw-r--r-- | talermerchantdemos/cli.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/talermerchantdemos/cli.py b/talermerchantdemos/cli.py index 48608d6..65453b5 100644 --- a/talermerchantdemos/cli.py +++ b/talermerchantdemos/cli.py @@ -31,6 +31,8 @@ LOGGER = logging.getLogger(__name__) # No perfect match to our logging format, but good enough ... UWSGI_LOGFMT = "%(ltime) %(proto) %(method) %(uri) %(proto) => %(status)" +arg_venvpath = ["-H", sys.prefix] + # Argument to tell uWSGI to load the python plugin. # This hack is required, because on systems where the plugin is statically linked, # loading it causes an error. @@ -48,6 +50,7 @@ def handle_serve_uwsgi(config, which_shop): params = [ "uwsgi", "uwsgi", + *arg_venvpath, *arg_load_python, "--master", "--die-on-term", @@ -98,6 +101,7 @@ def handle_serve_http(config, which_shop, port=None): params = [ "uwsgi", "uwsgi", + *arg_venvpath, *arg_load_python, "--master", "--die-on-term", |