Path substitution for --out and --outdir (#12796)
* Enable pathSubs for --out and --outDir * Cleanup
This commit is contained in:
parent
9e1fd9e46b
commit
eed328856f
2 changed files with 4 additions and 6 deletions
|
|
@ -586,9 +586,7 @@ proc pathSubs*(conf: ConfigRef; p, config: string): string =
|
|||
"projectname", conf.projectName,
|
||||
"projectpath", conf.projectPath.string,
|
||||
"projectdir", conf.projectPath.string,
|
||||
"nimcache", getNimcacheDir(conf).string])
|
||||
if "~/" in result:
|
||||
result = result.replace("~/", home & '/')
|
||||
"nimcache", getNimcacheDir(conf).string]).expandTilde
|
||||
|
||||
iterator nimbleSubs*(conf: ConfigRef; p: string): string =
|
||||
let pl = p.toLowerAscii
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue