runscript: pass script name as str (#36515)

This commit is contained in:
Frédéric Péters 2019-11-18 17:36:23 +01:00
parent 0eb5415bee
commit 0be6a94f13
1 changed files with 2 additions and 1 deletions

View File

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