[uWSGI] .yaml config files and magic variables

John Sivak jsivak at winterjewel.com
Wed Apr 23 06:08:48 CEST 2014

I'm switching from an .ini based uWSGI config to a .yaml based one and 
am having problems with magic variables being processed for a Python web 
app using Pylons.

In the .ini file:
chdir = %d

properly evaulates to the directory of the .ini file.

In the .yaml file:

chdir: %d

Can't be used, because PyYaml complains about the '%' character being 
first, so I try:

chdir: "%d"

but then uWSGI expands that to "/home/jsivak/projects/app1" (including 
the double quotation marks) and uWSGI can't find/chdir to the actual 
directory: /home/jsivak/projects/app1

Is this a bug/issue in uWSGI's processing of string based magic variables?


More information about the uWSGI mailing list