(entrypoint: string)
| 140 | } |
| 141 | |
| 142 | export function entrypointToModule(entrypoint: string): string { |
| 143 | return entrypoint |
| 144 | .replace(/\\/g, '/') |
| 145 | .replace(/\.py$/i, '') |
| 146 | .replace(/\//g, '.'); |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * Check if a Python file contains a top-level app/handler. |
no test coverage detected