Skip to content

Commit 72c74d7

Browse files
authored
Merge pull request #61 from ccdc-opensource/output_dir_bug_fix_NO_JIRA
Output dir bug fix no jira
2 parents 4b3129d + f7b6401 commit 72c74d7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/mof_solvent_removal_2017_chem_mater_publication/Command_prompt_MOF_solvent_removal.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@
4545

4646
args = arg_handler.parse_args()
4747
if not args.output_directory:
48-
args.output_directory = os.path.dirname(args.input_file)
48+
args.output_directory = os.path.abspath(os.path.dirname(args.input_file))
49+
50+
if not os.path.exists(args.output_directory):
51+
os.makedirs(args.output_directory)
4952

5053
# Define the solvent smiles patterns
5154
if not args.solvent_file:

0 commit comments

Comments
 (0)