Boris Goldowsky wrote: > I have two add-ons that I maintain for our users - > let's call them A and B. > > B extends and refers to A like this; in B.xxe: > > <include location="../A/A.xxe"/> > > and in B.css: > > @import url(../A/A.css); > > the trouble is, if A is updated via the add-ons manager, then the new > version is stored in a new directory - rather than addons/A, it ends up > in addons/A-2. So the links break. > > Is there any way to refer to the directory of another add-on in a > canonical way, that will last through an update? >
Please try the following trick: * Add-on A includes an XML catalog containing this entry: --- <rewriteURI uriStartString="addon-a:" rewritePrefix="." /> --- * B.xxe contains: --- <include location="addon-a:A.xxe"/> --- * B.css contains: --- @import url(addon-a:A.css); ---

