Return a package name built from an ``input_path`` path.
(input_path)
| 152 | |
| 153 | |
| 154 | def build_package_name(input_path): |
| 155 | """ |
| 156 | Return a package name built from an ``input_path`` path. |
| 157 | |
| 158 | """ |
| 159 | if input_path: |
| 160 | absinput = absinput = os.path.abspath(input_path) |
| 161 | if os.path.isfile(absinput): |
| 162 | input_path = parent_directory(absinput) |
| 163 | return python_safe_name(file_name(input_path)) |
| 164 | |
| 165 | return 'scancode-toolkit-analyzed-package' |
| 166 | |
| 167 | |
| 168 | def check_sha1(codebase): |
no test coverage detected