title: uwsgi emperor share and use a common default ini within projects
body: <p>I'm using the uwsgi Emperor to manage multiple Flask apps, and for each individual app, I have several ini configs, e.g. <code>local.ini</code>, <code>production.ini</code> that I want to share common ini features from a central <code>default.ini</code>.  And I'd like be able to do this for multiple projects, i.e. different projects can have different defaults.  However, I cannot get the emperor to follow the symlinks to recognize the <code>default.ini</code> file.  How do I get the emperor to follow symlinks so each project can understand its default.ini location?  I always get the error
  <code>realpath() of default.ini failed: No such file or directory</code></p>
  
  <p><code>emperor.ini</code> setup file</p>
  
  <pre><code>[uwsgi]
  emperor = /www/uwsgi/vassals
  emperor-broodlord = 40
  logto = /www/uwsgi/log/emperor.log
  master = true
  thunder-lock = true
  enable-threads = true
  stats = /tmp/empstats.sock
  die-on-term = true
  </code></pre>
  
  <p>My vassals directory is set up with symlinks that point to the respective projects ini files</p>
  
  <pre><code>uwsgi_app1.ini -&gt; /path/to/project1/local.ini 
  uwsgi_app2.ini -&gt; /path/to/project2/local.ini
  </code></pre>
  
  <p>For each separate project, I have a <code>default.ini</code> which contains common settings I want to use for both local and production environments, for that project. </p>
  
  <p>Project1
  <code>default.ini</code> </p>
  
  <pre><code>[uwsgi]
  
  file = %(wwwdir)/%(module)/run_%(app_name)
  daemonize = %(wwwdir)/%(module)/log/%(app_name).log
  socket = %(socketdir)/uwsgi_%(app_name).sock
  stats = %(socketdir)/%(module)_stats.sock
  
  master = true
  processes = 4
  
  chmod-socket = 666
  vacuum = true
  thunder-lock = true
  enable-threads = true
  lazy-apps = true
  </code></pre>
  
  <p>with <code>local.ini</code> and <code>production.ini</code>, having slightly different variables, being</p>
  
  <p>local</p>
  
  <pre><code>[uwsgi]
  callable = app
  wwwdir = /localwww/
  socketdir = /tmp
  module = app1
  app_name = app1
  ini = default.ini
  </code></pre>
  
  <p>production</p>
  
  <pre><code>[uwsgi]
  callable = app
  wwwdir = /home/var-www/
  socketdir = /run/uwsgi/tmp
  module = app1
  app_name = app1
  ini = default.ini
  </code></pre>
  
  <p>If I use the <code>%p</code> magic variable to specify the absolute path, it instead points to the emperor vassal directory <code>www/uwsgi/vassals/default.ini</code>, rather than the real path.  </p>