3 SCRIPTDIR
= os
.path
.dirname(__file__
)
5 ## Build initial help list
10 f
= open(os
.path
.join(SCRIPTDIR
, 'help.txt'))
15 if line
.endswith('+\\'):
16 multiline
+= line
[:-2]
19 help_list
[title
].append(multiline
)
22 if not line
or line
.startswith('#'):
23 # skip blank or commented lines
29 value
, data
= [x
.strip() for x
in line
.split(':', 1)]
30 if value
.lower() == 'available in':
31 # special setting to create section_known array
32 for section
in data
.split(','):
33 section
= section
.lower().strip()
34 if section
not in settings_known
:
35 settings_known
[section
] = []
36 settings_known
[section
].append(title
)
38 if line
.endswith('+\\'):
39 multiline
+= line
[:-2]
41 help_list
[title
].append(line
)
44 ## Done building help list
49 def getknown(section
):
50 return settings_known
[section
]