diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-07-31 21:23:03 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-07-31 21:23:03 +0530 |
commit | 61ce4e7b089d68395be2221f64d89040c0b14a34 (patch) | |
tree | 6bd60c1fd4f8bcd1c503914c61272ed382fff1da /app/lstm_chem/utils/dirs.py | |
parent | 376f04d1df2692a8874de686372d18b9ab07950a (diff) |
added AI model
Diffstat (limited to 'app/lstm_chem/utils/dirs.py')
-rwxr-xr-x | app/lstm_chem/utils/dirs.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/lstm_chem/utils/dirs.py b/app/lstm_chem/utils/dirs.py new file mode 100755 index 0000000..bcd2a49 --- /dev/null +++ b/app/lstm_chem/utils/dirs.py @@ -0,0 +1,12 @@ +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() |