public static function getJsonConfigFilename()
    {
        $scanDir = getenv('BARTLETT_SCAN_DIR');
        if ($scanDir) {
            $dirs = explode(PATH_SEPARATOR, $scanDir);

            foreach ($dirs as $scanDir) {
                $filename = $scanDir . DIRECTORY_SEPARATOR . getenv('BARTLETTRC');
                if (file_exists($filename) && is_file($filename)) {
                    return realpath($filename);
                }
            }
        }
        return false;
    }
public static function getJsonConfigFilename()
    {
        $scanDir = getenv('BARTLETT_SCAN_DIR');
        if ($scanDir) {
            $dirs = explode(PATH_SEPARATOR, $scanDir);

            foreach ($dirs as $scanDir) {
                $filename = $scanDir . DIRECTORY_SEPARATOR . getenv('BARTLETTRC');
                if (file_exists($filename) && is_file($filename)) {
                    return realpath($filename);
                }
            }
        }
        return false;
    }
public static function getJsonConfigFilename ( ) { $ scanDir = getenv ( 'BARTLETT_SCAN_DIR' ) ; if ( $ scanDir ) { $ dirs = explode ( PATH_SEPARATOR , $ scanDir ) ; foreach ( $ dirs as $ scanDir ) { $ filename = $ scanDir . DIRECTORY_SEPARATOR . getenv ( 'BARTLETTRC' ) ; if ( file_exists ( $ filename ) && is_file ( $ filename ) ) { return realpath ( $ filename ) ; } } } return false ; }
Search a json file on a list of scan directory pointed by
the BARTLETT_SCAN_DIR env var.
Config filename is identify by the BARTLETTRC env var.

@return string|boolean FALSE if not found, otherwise its location
Search a json file on a list of scan directory pointed by the BARTLETT_SCAN_DIR env var . Config filename is identify by the BARTLETTRC env var .