added %V magic var (contains UWSGI_VERSION)

This commit is contained in:
Unbit
2013-03-21 17:18:41 +01:00
parent 8f5e7b124a
commit 9a671a4991
+1
View File
@@ -1753,6 +1753,7 @@ int main(int argc, char *argv[], char *envp[]) {
// set a couple of 'static' magic vars
uwsgi.magic_table['v'] = uwsgi.cwd;
uwsgi.magic_table['h'] = uwsgi.hostname;
uwsgi.magic_table['V'] = UWSGI_VERSION;
// you can embed a ini file in the uWSGi binary with default options
#ifdef UWSGI_EMBED_CONFIG