This message was deleted.
# ask-anything
s
This message was deleted.
b
not ploomber-specific, but I often have code like
Copy code
pathlib.Path(__file__).absolute().resolve() / "path/to/file.csv"
👍 1
or getting the root of your git project
Copy code
Path(subprocess.Popen("git rev-parse --show-toplevel", shell=True, stdout=subprocess.PIPE)
    .stdout.read().decode().strip())
e
alternatively, you can pass the path as param and have ploomber resolve it to an absolute path:
Copy code
tasks:
  - source: ...
    param:
      path: '{{root}}/path/to/file.csv'
{{root}}
will resolve to the parent of
pipeline.yaml
https://docs.ploomber.io/en/latest/api/spec.html#default-placeholders
🧠 1
j
! thanks!