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))