Permalink
Browse files

Updated OpenMinTeD scripts to not assume output directory exists

  • Loading branch information...
jakelever committed Apr 20, 2018
1 parent 8424882 commit 4fbd1adbe152f1fe05bce23d9fdd6825f905a940
Showing with 4 additions and 2 deletions.
  1. +2 −1 openminted/Ab3P
  2. +2 −1 openminted/OpenSesamIE
@@ -19,7 +19,8 @@ if __name__ == '__main__':
args = parser.parse_args()

assert os.path.isdir(args.input)
assert os.path.isdir(args.output)
if not os.path.isdir(args.output):
os.makedirs(args.output)

# Remove non XMI files (e.g. PDFs, spec files, etc)
deleteNonXMIFiles(args.input)
@@ -19,7 +19,8 @@ if __name__ == '__main__':
args = parser.parse_args()

assert os.path.isdir(args.input)
assert os.path.isdir(args.output)
if not os.path.isdir(args.output):
os.makedirs(args.output)

# Remove non XMI files (e.g. PDFs, spec files, etc)
deleteNonXMIFiles(args.input)

0 comments on commit 4fbd1ad

Please sign in to comment.