Skip to content

Commit 715f073

Browse files
committed
Minor edits to output paths NO_JIRA
1 parent 4b3129d commit 715f073

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

hbp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Created by Pablo Martinez-Bulit on 06/06/2024
2+
# The Cambridge Crystallographic Data Centre
3+
# pbulit@ccdc.cam.ac.uk

scripts/mof_solvent_removal_2017_chem_mater_publication/Command_prompt_MOF_solvent_removal.py

Lines changed: 4 additions & 1 deletion
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)