summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph K. Strauss <joseph.k.strauss@gmail.com>2018-08-02 22:16:30 -0400
committerLi Haoyi <haoyi.sg@gmail.com>2018-08-03 10:16:30 +0800
commitb58995378a147ddf09f37dffc33455365480cb6d (patch)
tree94a6d21b5d31e7b4d1f41f764d9d2653c43fe8fa
parent20b13d595f13964d5f31d9aa741d4c28e3dadf48 (diff)
downloadmill-b58995378a147ddf09f37dffc33455365480cb6d.tar.gz
mill-b58995378a147ddf09f37dffc33455365480cb6d.tar.bz2
mill-b58995378a147ddf09f37dffc33455365480cb6d.zip
Fix bug with 'u' at the beginning of path (#384)
-rw-r--r--main/src/mill/MillMain.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/src/mill/MillMain.scala b/main/src/mill/MillMain.scala
index c3a771d3..421b9f20 100644
--- a/main/src/mill/MillMain.scala
+++ b/main/src/mill/MillMain.scala
@@ -94,14 +94,13 @@ object MillMain {
stderr.println("Build repl needs to be run with the -i/--interactive flag")
(false, stateCache)
}else{
- val tqs = "\"\"\""
val config =
if(!repl) cliConfig
else cliConfig.copy(
predefCode =
s"""import $$file.build, build._
|implicit val replApplyHandler = mill.main.ReplApplyHandler(
- | ammonite.ops.Path($tqs${cliConfig.home.toIO.getCanonicalPath.replaceAllLiterally("$", "$$")}$tqs),
+ | ammonite.ops.Path(${pprint.apply(cliConfig.home.toIO.getCanonicalPath.replaceAllLiterally("$", "$$")).plainText}),
| $disableTicker,
| interp.colors(),
| repl.pprinter(),