from talon import resource
with resource.open(os.path.expanduser("~/test"), "r") as f:
print("reloaded")
for line in f.readlines():
print(line)
This fails to reload when I change the file ~/test. Apparently this is because resource.open does not work on files outside of the talon user directory. This seems like a minor foot gun, I would expect that either
- resource.open will auto-reload on any file.
- resource.open will produce an error when called on a file which it cannot auto reload.