summaryrefslogtreecommitdiff
path: root/bin/taler-merchant-demos
diff options
context:
space:
mode:
Diffstat (limited to 'bin/taler-merchant-demos')
-rwxr-xr-xbin/taler-merchant-demos12
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/taler-merchant-demos b/bin/taler-merchant-demos
index feb4e4d..b252bb6 100755
--- a/bin/taler-merchant-demos
+++ b/bin/taler-merchant-demos
@@ -33,6 +33,11 @@ LOGGER = logging.getLogger(__name__)
# No perfect match to our logging format, but good enough ...
UWSGI_LOGFMT = "%(ltime) %(proto) %(method) %(uri) %(proto) => %(status)"
+# 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.
+arg_load_python = "--if-not-plugin python --plugins python --endif".split(" ")
+
##
# This function interprets the 'serve-uwsgi' subcommand.
# The effect is to launch the blog UWSGI service. This
@@ -45,6 +50,7 @@ def handle_serve_uwsgi(config, which_shop):
params = [
"uwsgi",
"uwsgi",
+ *arg_load_python,
"--master",
"--die-on-term",
"--log-format",
@@ -91,11 +97,7 @@ def handle_serve_http(config, which_shop, port=None):
os.execlp(
"uwsgi",
"uwsgi",
- "--if-not-plugin",
- "python",
- "--plugins",
- "python",
- "--endif",
+ *arg_load_python,
"--master",
"--die-on-term",
"--log-format",