I wanted to build the docs for the views.utils module, but it has to import the Flask app and it crashed with a KeyError because the fedmsg config could not be found. The reason is that the docs are built with the working directory set to docs, thus fedmsg.config can't find the fedmsg.d directory.
Ideally, we would be able to set an environment variable that would tell fedmsg.config to look at an additional directory, but for the moment this commit works.
I wanted to build the docs for the
views.utilsmodule, but it has to import the Flask app and it crashed with aKeyErrorbecause the fedmsg config could not be found. The reason is that the docs are built with the working directory set todocs, thusfedmsg.configcan't find thefedmsg.ddirectory.Ideally, we would be able to set an environment variable that would tell
fedmsg.configto look at an additional directory, but for the moment this commit works.