def __init__(self, name=None, path=SCRIPT, static="./static", rate="rate.db"):
        # RateLimit db resides in app folder:
        rate = os.path.join(path, rate)
        self._name   = name         # App name.
        self._path   = path         # App path.
        self._host   = None         # Server host, see App.run().
        self._port   = None         # Server port, see App.run().
        self._app    = None         # CherryPy Application object.
        self._up     = False        # True if server is up & running.
        self._cache  = {}           # Memoize cache.
        self._cached = 1000         # Memoize cache size.
        self._static = static       # Static content folder.
        self._rate   = rate         # RateLimit db name, see also App.route(limit=True).
        self.router  = Router()     # Router object, maps URL paths to handlers.
        self.thread  = App.Thread() # Thread-safe dictionary.
        os.chdir(path)
wrapper function for wgsim
dataset/ETHPy150Open clips/pattern/pattern/server/__init__.py/Application.__init__--crossover with--dataset/ETHPy150Open adamewing/bamsurgeon/bin/addsv.py/runwgsim