OpenEnergyPlatform / open-MaStR

A collaborative software to download the energy database Marktstammdatenregister (MaStR)

Home Page:https://open-mastr.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom path for home directory

FlorianK13 opened this issue · comments

It seems like the path ~/.open-mastr is not configureable. Or do you know of a way to change the home path of the downloaded files @chrwm ? We could extend the funtion def get_project_home_dir(): to read an evironment variable? Or the Mastr.init() function gets a project home path variable?

I implemented functions already in this PR.

It reads already the variable "OUTPUT_PATH", which your can set in your environment variables or set in the main.py script

os.environ['OUTPUT_PATH'] = "/your/custom/output_path"

However, as stated it will just change the path for: csv-export, database, xml-export.
The log file remains in ~/.open-mastr, from what I remember it would have been more of a hustle to change that.