From b58995378a147ddf09f37dffc33455365480cb6d Mon Sep 17 00:00:00 2001 From: "Joseph K. Strauss" Date: Thu, 2 Aug 2018 22:16:30 -0400 Subject: Fix bug with 'u' at the beginning of path (#384) --- main/src/mill/MillMain.scala | 3 +-- 1 file changed, 1 insertion(+), 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(), -- cgit v1.2.3