(api_base_path)
| 762 | click.echo(f"Hurray! your desktop app is up and running. Visit http://{ip}{api_base_path or '/'} to see the API Docs.") |
| 763 | |
| 764 | def clean_base_path(api_base_path): |
| 765 | api_base_path = os.path.normpath(api_base_path) if api_base_path else "" |
| 766 | |
| 767 | if api_base_path == ".": |
| 768 | api_base_path = "" |
| 769 | elif api_base_path: |
| 770 | if not api_base_path.startswith("/"): |
| 771 | api_base_path = "/" + api_base_path |
| 772 | if api_base_path.endswith("/"): |
| 773 | api_base_path = api_base_path[:-1] |
| 774 | return api_base_path |
| 775 | |
| 776 | def delete_installer(default_name): |
| 777 | if os.path.exists(default_name): |
no outgoing calls
no test coverage detected