This change ports Ic8936c2e657a2a0212b1bc96915ba6e2035569b3 from
nova's specs repo to fix the redirect generation
The type of app.builder.srcdir is now a _StrPath which
breaks the invocation of replace when generating
redirects.
This change just fixes that by wrapping it in str()
Change-Id: I123aec140d9871ad27e522c107edad40efaf2a19
In some part in the code we import objects. In the Openstack style guidelines
they recommend to import only modules. [1]: "Do not import objects, only modules".
[1] https://docs.openstack.org/hacking/0.10.3/
Change-Id: Ib28240efb761a9426c57ac2551e0f19f07cdc2fb