quacc_home added

This commit is contained in:
Lorenzo Volpi 2023-11-16 01:36:18 +01:00
parent 1105709a4c
commit aa4ab78eb5
1 changed files with 6 additions and 0 deletions

View File

@ -57,3 +57,9 @@ def create_dataser_dir(dir_name, update=False):
env.PLOT_OUT_DIR = plot_dir_path
if not plot_dir_path.exists():
os.mkdir(plot_dir_path)
def get_quacc_home():
home = Path("~/quacc_home").expanduser()
os.makedirs(home, exist_ok=True)
return home