From 9a253f896fba757778370c8ad6d40daa3b4cdad0 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Fri, 31 Jul 2020 22:19:38 +0530 Subject: added Curie-Generate BETA --- lstm_chem/utils/dirs.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 lstm_chem/utils/dirs.py (limited to 'lstm_chem/utils/dirs.py') diff --git a/lstm_chem/utils/dirs.py b/lstm_chem/utils/dirs.py new file mode 100755 index 0000000..bcd2a49 --- /dev/null +++ b/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() -- cgit v1.2.3