From 0be6a94f13843c88fab5e31536c2b2844fe73ccf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 18 Nov 2019 17:36:23 +0100 Subject: [PATCH] runscript: pass script name as str (#36515) --- wcs/ctl/management/commands/runscript.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcs/ctl/management/commands/runscript.py b/wcs/ctl/management/commands/runscript.py index 96649baf1..a8cf84646 100644 --- a/wcs/ctl/management/commands/runscript.py +++ b/wcs/ctl/management/commands/runscript.py @@ -21,6 +21,7 @@ import sys from django.core.management.base import CommandError +from wcs.qommon import force_str from wcs.qommon.publisher import get_publisher_class from . import TenantCommand @@ -54,4 +55,4 @@ class Command(TenantCommand): for domain in domains: sys.argv = args[:] self.init_tenant_publisher(domain, register_tld_names=False) - runpy.run_module(module_name) + runpy.run_module(force_str(module_name))