Curie-Web/app/lstm_chem/utils/dirs.py

13 lines
256 B
Python
Executable File

import os
import sys
def create_dirs(dirs):
try:
for dir_ in dirs:
if not os.path.exists(dir_):
os.makedirs(dir_)
except Exception as err:
print(f'Creating directories error: {err}')
sys.exit()