GothenburgBitFactory / tasklib

A Python library for interacting with taskwarrior databases.
http://tasklib.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
146 stars 27 forks source link

fix(backend): expand vars for rc and data location #123

Open npoirot opened 1 year ago

npoirot commented 1 year ago

When passing an environment variable such as $XDG_CONFIG_HOME or $XDG_DATA_HOME to a TaskWarrior instance of the library, the variables are not expanded leading to ignoring rc_location or creating a path like '~/$XDG_DATA_HOME'.

Encountered this behavior using taskwiki vim plugin which does not expand any variables either.