diff options
author | Joseph K. Strauss <joseph.k.strauss@gmail.com> | 2018-08-02 22:16:30 -0400 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-08-03 10:16:30 +0800 |
commit | b58995378a147ddf09f37dffc33455365480cb6d (patch) | |
tree | 94a6d21b5d31e7b4d1f41f764d9d2653c43fe8fa /main/src | |
parent | 20b13d595f13964d5f31d9aa741d4c28e3dadf48 (diff) | |
download | mill-b58995378a147ddf09f37dffc33455365480cb6d.tar.gz mill-b58995378a147ddf09f37dffc33455365480cb6d.tar.bz2 mill-b58995378a147ddf09f37dffc33455365480cb6d.zip |
Fix bug with 'u' at the beginning of path (#384)
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/mill/MillMain.scala | 3 |
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(), |