biolink / biolinkml

DEPRECATED: replaced by linkml
https://github.com/linkml/linkml
Creative Commons Zero v1.0 Universal
23 stars 12 forks source link

Relative import paths have one too many dots #260

Closed hsolbrig closed 3 years ago

hsolbrig commented 4 years ago
   imports:
       - ../core/datatypes

generates:

from ...core.datatypes import Foo

The first slash should be removed before doing dot conversion.

hsolbrig commented 4 years ago

Will push a fix for this, but this still seems to cause problems in Python -- we will add a more robust fix that allows all generated paths to be absolute.