Commit 012936aa authored by Tres Seaver's avatar Tres Seaver

 - Skip attempting to register APIHelp for files beginning with '_'
     (e.g., '__init__.py').
parent f2f9601f
...@@ -389,6 +389,8 @@ class ProductContext: ...@@ -389,6 +389,8 @@ class ProductContext:
ht=HelpTopic.ImageTopic(file, '', os.path.join(path, file)) ht=HelpTopic.ImageTopic(file, '', os.path.join(path, file))
self.registerHelpTopic(file, ht) self.registerHelpTopic(file, ht)
elif ext in ('.py',): elif ext in ('.py',):
if file[0] == '_': # ignore __init__.py
continue
ht=APIHelpTopic.APIHelpTopic(file, '', os.path.join(path, file)) ht=APIHelpTopic.APIHelpTopic(file, '', os.path.join(path, file))
self.registerHelpTopic(file, ht) self.registerHelpTopic(file, ht)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment