Projet

Général

Profil

0001-commands-use-a-list-to-replace-sys.argv-in-runscript.patch

Frédéric Péters, 06 décembre 2019 13:34

Télécharger (956 octets)

Voir les différences:

Subject: [PATCH] commands: use a list to replace sys.argv in runscript
 (#38261)

 hobo/multitenant/management/commands/runscript.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hobo/multitenant/management/commands/runscript.py
30 30
        fullpath = os.path.dirname(os.path.abspath(args[0]))
31 31
        sys.path.insert(0, fullpath)
32 32
        module_name = os.path.splitext(os.path.basename(args[0]))[0]
33
        sys.argv = args
33
        sys.argv = list(args)
34 34
        runpy.run_module(module_name)
35
-