0001-commands-use-a-list-to-replace-sys.argv-in-runscript.patch
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 |
- |