I have created a small Python script to save directories in a side directory, under the current user. I am running on Mac but production is Ubuntu
My problem is the
From the docs (here, from the glob module):
(For tilde and shell variable expansion, use os.path.expanduser() and os.path.expandvars().)
You want os.path.expanduser().
os.path.expanduser()
os.environ["HOME"] = "/Users/partuck/ os.path.expanduser("~/cache_dir/bla")
(@jedwards answer pointed out expanduser)
expanduser