Curie-Web/lstm_chem/utils/dirs.py

13 lines
256 B
Python
Raw Permalink Normal View History

2020-07-31 17:49:38 +01:00
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()