From: "Lars R. Damerow" lars@pixar.com
Before this change, man page scripts that had 'p' or 'y' at the beginning of their names would have those trimmed off too (along with the .py suffix), leading to breakage and sadness. --- src/pyrpkg/cli.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/pyrpkg/cli.py b/src/pyrpkg/cli.py index cbe6ef2..9733a6b 100755 --- a/src/pyrpkg/cli.py +++ b/src/pyrpkg/cli.py @@ -1359,8 +1359,10 @@ Tasks still running. You can continue to watch with the '%s watch-task' command.
if manpage: # Generate the man page - man_page = __import__('%s' % - self.name.strip('.py')) + man_name = self.name + if man_name.endswith('.py'): + man_name = man_name[:-3] + man_page = __import__('%s' % man_name) man_page.generate(self.parser, self.subparsers) sys.exit(0) # no return possible