We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b3129d + f7b6401 commit 72c74d7Copy full SHA for 72c74d7
scripts/mof_solvent_removal_2017_chem_mater_publication/Command_prompt_MOF_solvent_removal.py
@@ -45,7 +45,10 @@
45
46
args = arg_handler.parse_args()
47
if not args.output_directory:
48
- args.output_directory = os.path.dirname(args.input_file)
+ 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)
52
53
# Define the solvent smiles patterns
54
if not args.solvent_file:
0 commit comments