__init__(self,
filename=' /home/mhoebeke/Devel/lichk/src/licensechecker/data/fileinfo.txt ' )
(Constructor)
| source code
|
Builds a new instance of FileChecker from a text file containing
descriptions of programming languages and file extensions.
The textfile must be formatted as follows:
-
blank lines or lines starting with
# are ignored,
-
other lines are split in whitespace separated fields:
-
the first field contains an indentifier (case sensitive) for the
programming language,
-
the remaining fields each contain a file extension related to the
programming language.
Example:
# Enumeration of file extensions for C++
C++ .cc .C .cxx .cpp .h .hxx
- Parameters:
filename - a string with the filename containing the association between
programming languages and file extensions. If no argument is
given, the instance is built from the contents of the
fileinfo.txt file located in the module's
data subdirectory.
|