runscript: pass script name as str (#36515)
This commit is contained in:
parent
0eb5415bee
commit
0be6a94f13
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue