Make sure each program in *args can be found in $PATH.
( *args, **kwargs )
| 62 | |
| 63 | |
| 64 | def pathCheck( *args, **kwargs ): |
| 65 | "Make sure each program in *args can be found in $PATH." |
| 66 | moduleName = kwargs.get( 'moduleName', 'it' ) |
| 67 | for arg in args: |
| 68 | if not quietRun( 'which ' + arg ): |
| 69 | error( 'Cannot find required executable %s.\n' % arg + |
| 70 | 'Please make sure that %s is installed ' % moduleName + |
| 71 | 'and available in your $PATH:\n(%s)\n' % environ[ 'PATH' ] ) |
| 72 | exit( 1 ) |