Summary: | kapidox_generate fails in 'create_dirs' (no such file or directory) | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kapidox | Reporter: | Scott Harvey <scott> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | argonel |
Priority: | NOR | ||
Version: | 5.52.0 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kapidox/34b86963bebd8ba8b9ec96e4235728f4623476e9 | Version Fixed In: |
Description
Scott Harvey
2018-03-27 20:25:04 UTC
(In reply to Scott Harvey from comment #0) <snip> > $ kapidox_generate /home/bundito/kwindowsystem/ <snip> > OSError: [Errno 2] No such file or directory: '' > Is this a bug? Am I still missing a dependency? Am I invoking this incorrectly? I would say yes, it is a bug - and technically you are invoking it incorrectly. If you look very closely at the docs, the example is: > ~/src/frameworks/kapidox/src/kapidox_generate ~/src/frameworks/kcoreaddons ... note the lack of trailing slash. You have a trailing / in your invocation, which causes the script to fail. The script should either handle this gracefully or output a reasonable error message. Git commit 34b86963bebd8ba8b9ec96e4235728f4623476e9 by Olivier CHURLAUD. Committed on 11/11/2018 at 11:57. Pushed by ochurlaud into branch 'master'. Normalize all input paths with the os.path.normpath function. This prevents possible crashes on bad shaped paths. M +9 -6 src/kapidox/argparserutils.py https://commits.kde.org/kapidox/34b86963bebd8ba8b9ec96e4235728f4623476e9 |