<s> import os <EOL> def whereis_exe ( program ) : <EOL> '''<STR_LIT>''' <EOL> for path in os . environ . get ( '<STR_LIT>' , '<STR_LIT>' ) . split ( '<STR_LIT::>' ) : <EOL> if os . path . exists ( os . path . join ( path , program ) ) and not os . path . isdir ( os . path . join ( path , program ) ) : <EOL> return os . path . join ( path , program ) <EOL> return None </s>
