This turned out to be an unrelated problem. However, I did find a problem with relative imports here: [https://github.com/c-blake/cligen/issues/88](https://github.com/c-blake/cligen/issues/88) That one is easy to work around, and might be a mistake by the user anyway.
But I do wonder how relative imports are _supposed_ to work. I don't see any mention of relative imports in the Nim manual.