def at.of

ezx@1.11.0.0 · src/add/plan.bend:545

import ezx@1.11.0.0/src/add/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/add/world.bend as A
import ezx@1.11.0.0/src/pkg/pkg.bend as K
import ezx@1.11.0.0/src/pkg/path.bend as Path

545# the entry's path inside a package rooted at `root`, which is where the hub
546# serves it: its name alone, unless an import climbs out of its directory and
547# re-roots the package above it
548def at.of(+root: String, +world: A.World) -> String:
549  K.inside(root, Path.norm(entry(world)))

Uses (5)

Used by (2)