Skip to content

Commit

Permalink
Merge pull request #61 from ccdc-opensource/output_dir_bug_fix_NO_JIRA
Browse files Browse the repository at this point in the history
Output dir bug fix no jira
  • Loading branch information
sbwiggin authored Jul 4, 2024
2 parents 4b3129d + f7b6401 commit 72c74d7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@

args = arg_handler.parse_args()
if not args.output_directory:
args.output_directory = os.path.dirname(args.input_file)
args.output_directory = os.path.abspath(os.path.dirname(args.input_file))

if not os.path.exists(args.output_directory):
os.makedirs(args.output_directory)

# Define the solvent smiles patterns
if not args.solvent_file:
Expand Down

0 comments on commit 72c74d7

Please sign in to comment.