add a default to doxyassist_xml

This commit is contained in:
Sébastien Loriot 2012-11-06 01:22:46 +00:00
parent 806ca5bc19
commit 268673dcc2
1 changed files with 6 additions and 1 deletions

View File

@ -192,7 +192,12 @@ removes some unneeded files, and performs minor repair on some glitches.''')
#if doxyassist.xml was provided, copy figures
if args.doxyassist_xml:
copy_all_non_pdf_figures(args.doxyassist_xml,args.output)
else:
#try to guess a default
guess=path.join(path.dirname(path.abspath(argv[0])),"doxyassist.xml")
if path.exists(guess):
copy_all_non_pdf_figures(guess,args.output)
resources_absdir=path.join( path.dirname(path.abspath(argv[0]) ),"resources")
os.chdir(args.output)