add os.getCacheDir (#18126)
* add `os.getCacheDir` * fixup * address comments
This commit is contained in:
parent
60cbdbf37a
commit
9559350e34
3 changed files with 43 additions and 7 deletions
|
|
@ -556,6 +556,9 @@ block getTempDir:
|
|||
else:
|
||||
doAssert getTempDir() == "/tmp"
|
||||
|
||||
block: # getCacheDir
|
||||
doAssert getCacheDir().dirExists
|
||||
|
||||
block osenv:
|
||||
block delEnv:
|
||||
const dummyEnvVar = "DUMMY_ENV_VAR" # This env var wouldn't be likely to exist to begin with
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue