MCPcopy Create free account
hub / github.com/mininet/mininet / pathCheck

Function pathCheck

mininet/moduledeps.py:64–72  ·  view source on GitHub ↗

Make sure each program in *args can be found in $PATH.

( *args, **kwargs )

Source from the content-addressed store, hash-verified

62
63
64def 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 )

Callers 6

setupMethod · 0.90
__init__Method · 0.90
setupMethod · 0.90
setupMethod · 0.90
startMethod · 0.90
setupMethod · 0.90

Calls 2

quietRunFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected