summaryrefslogtreecommitdiff
path: root/core/src/main/scala/mill/define/Module.scala
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/scala/mill/define/Module.scala')
-rw-r--r--core/src/main/scala/mill/define/Module.scala5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/src/main/scala/mill/define/Module.scala b/core/src/main/scala/mill/define/Module.scala
index f7c84b6d..e42ce798 100644
--- a/core/src/main/scala/mill/define/Module.scala
+++ b/core/src/main/scala/mill/define/Module.scala
@@ -24,10 +24,7 @@ class Module(implicit outerCtx0: mill.define.Ctx) extends mill.moduledefs.Cacher
lazy val millModuleDirectChildren = millInternal.reflectNestedObjects[Module]
def millOuterCtx = outerCtx0
- def basePath: Path = millOuterCtx.basePath / (millOuterCtx.segment match{
- case Segment.Label(s) => List(s)
- case Segment.Cross(vs) => vs.map(_.toString)
- })
+ def basePath: Path = millOuterCtx.basePath / millOuterCtx.segment.pathSegments
implicit def millModuleBasePath: BasePath = BasePath(basePath)
implicit def millModuleSegments: Segments = {
millOuterCtx.segments ++ Seq(millOuterCtx.segment)