kwiqsilver
kwiqsilver

Reputation: 1027

Parse files without extensions

I'm setting up the doxygen for a project. The module files have their language standard extension (.py), but the executable scripts do not. How can I get doxygen to read these correctly (Python in this case)? I tried

EXTENSION_MAPPING = ''=Python

But that looks for files named "blah.". I'm on a Unix system, so the concept of a file extension doesn't even exist here. And this is an existing project, so renaming all of the existing scripts is not an option.

Any ideas?

Upvotes: 1

Views: 753

Answers (3)

skierpage
skierpage

Reputation: 2584

According to doxygen's EXTENSION_MAPPING docs,

EXTENSION_MAPPING = ".no_extension=python"

should work.

Upvotes: 0

kwiqsilver
kwiqsilver

Reputation: 1027

I modified doxygen to handle filenames without dots in them, and I'll submit the patch to the maintainers.

Upvotes: 1

doxygen
doxygen

Reputation: 14869

One simple trick is to make a symbolic link to the script that does have the right extension, and let doxygen then process the symbol link.

Say you have a python script called test, then do

ln -s test test.py

and then specify the test.py file in doxygen's configuration file

INPUT = test.py

Upvotes: 0

Related Questions