Stop interrogate from using paths in includes

I got a problem with interrogate. I’m running it as

C:\Panda3D-1.8.1\bin\interrogate.exe -D__inline -DCPPPARSER -DP3_INTERROGATE=1 -
D__cplusplus -fnames -string -refcount -assert -SC:\Panda3D-1.8.1\include\parser
-inc -SC:\Panda3D-1.8.1\include -IC:\Panda3D-1.8.1\include -Isrc/nametag -Isrc/m
argins -Isrc/etc -oc built/nametag_igate.cxx -od built/ -python-native
 -DCPPPARSER -D__STDC__=1 -D__cplusplus -D__inline -longlong __int64 -D_X86_ -DW
IN32_VC -DWIN32 -D_WIN32 src/nametag\chatBalloon.h src/nametag\nametag.h src/nam
etag\nametag2d.h src/nametag\nametag3d.h src/nametag\nametagConstants.h src/name
tag\nametagFloat2d.h src/nametag\nametagFloat3d.h src/nametag\nametagGlobals.h s
rc/nametag\nametagGroup.h -module nametag -library libtag -Dvolatile=

Notice the usage of the src/tree/xxx.h.

However, it’s generating includes with paths:

#include "src/nametag/chatBalloon.h"
#include "src/nametag/nametag.h"
#include "src/nametag/nametag2d.h"
#include "src/nametag/nametag3d.h"
#include "src/nametag/nametagConstants.h"
#include "src/nametag/nametagFloat2d.h"
#include "src/nametag/nametagFloat3d.h"
#include "src/nametag/nametagGlobals.h"
#include "src/nametag/nametagGroup.h"

Is there any way to stop interrogate from generating relative paths (I want “xxxx.h” only), without editing the command (eg. I wanna keep calling it like src/tree/xxx.h)?

Yes, you can do this by setting the -srcdir argument, eg. “-srcdir src/nametag”. Then, you can specify your header files on the command-line without the “src/nametag” prefix.