Example #1
0
File: main.py Project: Deric-W/PyHP
 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
Example #2
0
 def __init__(self):
     self.os_environ = {}
     CGIHandler.__init__(self)
Example #3
0
 def __init__(self):
   self.os_environ = {}
   CGIHandler.__init__(self)