Add procs to retrieve project name, directory and full path to nimscript (#9274)

This commit is contained in:
Solitude 2018-10-11 10:56:12 +03:00 • committed by Andreas Rumpf
commit 027a11d7c8
2 changed files with 18 additions and 0 deletions

View file

@ -96,6 +96,12 @@ proc setupVM*(module: PSym; cache: IdentCache; scriptName: string;
cbconf fileExists:
setResult(a, os.fileExists(a.getString 0))
cbconf projectName:
setResult(a, conf.projectName)
cbconf projectDir:
setResult(a, conf.projectPath.string)
cbconf projectPath:
setResult(a, conf.projectFull.string)
cbconf thisDir:
setResult(a, vthisDir)
cbconf put: