MCPcopy Create free account
hub / github.com/comaps/comaps / is_executable

Function is_executable

tools/python/maps_generator/utils/file.py:45–46  ·  view source on GitHub ↗
(fpath: AnyStr)

Source from the content-addressed store, hash-verified

43 return file_path
44
45def is_executable(fpath: AnyStr) -> bool:
46 return fpath is not None and os.path.isfile(fpath) and os.access(fpath, os.X_OK)
47
48
49@functools.lru_cache()

Callers 2

setup_osm_toolsMethod · 0.90
find_executableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected