> There is a policy which says that PLD packages
contain no *.py
> files - only *.pyc and *.pyo. HappyDoc plugin loader
tries to load
What an odd policy. I would be interested to know why
they do it that way.
> only *.py files so I got into trouble when creating
> I have an idea so HappyDoc could use *.pyo files when
> and when not then load *.py plugins. I am attaching a
> illustrates the change but _is_not_the_solution_ (it
> files but no *.py). If you like the idea, then I can
> full solution.
There may be a case for changing the scheme by why
plugins are identified.
It seems like a better approach would be to find
distinct basenames for files
that begin with the plugin name. Something along the
all_files = glob.glob('formatter_*')
all_basenames = map(os.path.basename, all_files)
unique_modules = 
for module in all_basenames:
if module not in unique_modules:
That would let a developer create .pyd, .pyo, .so, .dll
or whatever other
format extension they might want. I'll add that to the
Log in to post a comment.