doxy: fixed problem when infile is in cur dir
authordberzano <dario.berzano@cern.ch>
Wed, 11 Feb 2015 20:29:15 +0000 (21:29 +0100)
committerdberzano <dario.berzano@cern.ch>
Wed, 11 Feb 2015 21:02:15 +0000 (22:02 +0100)
doxygen/thtml2doxy.py

index 15f54e9..ba324bd 100755 (executable)
@@ -915,7 +915,10 @@ def write_macro(infilename, macro_lines):
     digh.update('\n')
   short_digest = digh.hexdigest()[0:7]
 
-  outdir = '%s/imgdoc' % os.path.dirname(infilename)
+  infiledir = os.path.dirname(infilename)
+  if infiledir == '':
+    infiledir = '.'
+  outdir = '%s/imgdoc' % infiledir
   outprefix = '%s/%s_%s' % (
     outdir,
     os.path.basename(infilename).replace('.', '_'),