(binary: Optional[str])
| 851 | return None |
| 852 | |
| 853 | def bin_path(binary: Optional[str]) -> Optional[str]: |
| 854 | if binary is None: |
| 855 | return None |
| 856 | |
| 857 | node_modules_bin = Path('.') / 'node_modules' / '.bin' / binary |
| 858 | if node_modules_bin.exists(): |
| 859 | return str(node_modules_bin.resolve()) |
| 860 | |
| 861 | return shutil.which(str(Path(binary).expanduser())) or shutil.which(str(binary)) or binary |
| 862 | |
| 863 | def bin_hash(binary: Optional[str]) -> Optional[str]: |
| 864 | if binary is None: |
no outgoing calls
no test coverage detected