I have a custom module which exports xlsx accounting reports. When I export the report, it is saved in /var/lib/odoo directory instead in Downloads folder. Temporarily I set the path to home:
home = os.getenv("HOME")
When I print the home, the result is /var/lib/odoo. How do I get the home directory?