Check if curl is installed (#1337)

* check if curl is installed

* lint
This commit is contained in:
Matthew Tancik authored and GitHub committed 2023-02-02 10:11:41 -08:00
1 parent d547279a92
commit ef9e00e614
2 files changed
+11

No files matched your search

+8
View File
@@ -39,3 +39,11 @@ def check_colmap_installed():
CONSOLE.print("[bold red]Could not find COLMAP. Please install COLMAP.")
print("See https://colmap.github.io/install.html for installation instructions.")
sys.exit(1)
def check_curl_installed():
"""Checks if curl is installed."""
curl_path = shutil.which("curl")
if curl_path is None:
CONSOLE.print("[bold red]Could not find [yellow]curl[red], Please install [yellow]curl")
sys.exit(1)