summaryrefslogtreecommitdiff
path: root/talermerchantdemos/cli.py
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-02-24 14:38:46 +0100
committerFlorian Dold <florian@dold.me>2023-02-24 14:38:57 +0100
commit62e2866a6eb33c1658d720193627a45cb50cc1e5 (patch)
treeb814270d5768a2eed4549f47149f5bf6e4725a42 /talermerchantdemos/cli.py
parent245e2ae15c1f770bf6e8953fe951795a9d2461ea (diff)
downloadtaler-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.py4
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",