From ec770dd7c6d37f09f5c4949883f9907b0e608616 Mon Sep 17 00:00:00 2001 From: Harry Bond Date: Mon, 4 Sep 2023 14:18:40 +0100 Subject: [PATCH] [tools] fix building of osmctools Signed-off-by: Harry Bond --- tools/python/maps_generator/utils/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/maps_generator/utils/file.py b/tools/python/maps_generator/utils/file.py index b2af0b953b..9bca369d12 100644 --- a/tools/python/maps_generator/utils/file.py +++ b/tools/python/maps_generator/utils/file.py @@ -40,7 +40,7 @@ def file_uri_to_path(url : AnyStr) -> AnyStr: return file_path def is_executable(fpath: AnyStr) -> bool: - return os.path.isfile(fpath) and os.access(fpath, os.X_OK) + return fpath is not None and os.path.isfile(fpath) and os.access(fpath, os.X_OK) @functools.lru_cache()