| Server IP : 217.160.0.212 / Your IP : 216.73.216.141 Web Server : Apache System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/cm4all/fcgi/ |
Upload File : |
import os
import imp
class module_cache(dict):
def __missing__(self, path):
name, ext = os.path.splitext(os.path.split(path)[-1])
if ext in ('.pyc', '.py3c'):
mod = imp.load_compiled(name, path)
else:
mod = imp.load_source(name, path)
self[path] = value = getattr(mod, 'application')
return value
cache = module_cache()
def application(environ, start_response):
return cache[environ['SCRIPT_FILENAME']](environ, start_response)
def launch():
from flup.server.fcgi import WSGIServer
WSGIServer(application).run()
def launch_fork():
from flup.server.fcgi_fork import WSGIServer
WSGIServer(application).run()