def __init__(self, args: argparse.Namespace) -> None: CGIHandler.__init__(self) if args.name != "-": # ignore if reading from sys.stdin self.base_env["SCRIPT_FILENAME"] = args.name self.base_env["argv"] = [args.name] + args.args self.base_env["argc"] = len(args.args) + 1 # type: ignore
def __init__(self): self.os_environ = {} CGIHandler.__init__(self)