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
os.environ["HOME"] = "/Users/partuck/ os.path.expanduser("~/cache_dir/bla")
(@jedwards answer pointed out expanduser)
expanduser