|
@ -170,7 +170,7 @@ def main(): |
|
|
|
|
|
|
|
|
# Dispatch handler. |
|
|
# Dispatch handler. |
|
|
args = parser.parse_args() |
|
|
args = parser.parse_args() |
|
|
if hasattr(args, "env_file"): |
|
|
|
|
|
|
|
|
if hasattr(args, "env_file") and Path(args.env_file).is_file(): |
|
|
env.read_env(args.env_file, recurse=False, override=True) |
|
|
env.read_env(args.env_file, recurse=False, override=True) |
|
|
if hasattr(args, "handler"): |
|
|
if hasattr(args, "handler"): |
|
|
django.setup() |
|
|
django.setup() |
|
|