The CwdContext
captures the current working directory.
It can be created by capsula.CwdContext()
with no arguments.
[pre-run]
contexts = [
{ type = "CwdContext" },
]
import capsula
@capsula.run()
@capsula.context(capsula.CwdContext(), mode="pre")
def func(): ...
The following is an example of the output of the CwdContext
, reported by the JsonDumpReporter
:
"cwd": "/home/nomura/ghq/github.com/shunichironomura/capsula"