mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-06-16 02:15:48 +00:00
19 lines
332 B
Python
19 lines
332 B
Python
import sys
|
|
import os
|
|
import pyuwsgi
|
|
|
|
orig_args = sys.argv
|
|
orig_executable = sys.executable
|
|
orig_args.insert(0, orig_executable)
|
|
|
|
uwsgi_args = []
|
|
|
|
for arg in sys.argv[2:]:
|
|
uwsgi_args.append(arg)
|
|
|
|
# pyuwsgi.run('welcome.ini')
|
|
pyuwsgi.run(uwsgi_args)
|
|
|
|
# if you are here uWSGI has been reloaded
|
|
os.execv(orig_executable, orig_args)
|