[uWSGI] .yaml config files and magic variables

Roberto De Ioris roberto at unbit.it
Wed Apr 23 06:47:17 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?
>
> Thanks
> _______________________________________________
> uWSGI mailing list
> uWSGI at lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>

use the libyaml parser (just install libyaml development headers and
rebuild uWSGI)

It should be 100% compatible with the python one.

-- 
Roberto De Ioris
http://unbit.it


More information about the uWSGI mailing list