core/frontier.js
function (root_path, default_prefix) {
		var arr = SR.Settings.SR_PATH.split(SR.path.sep);
		var prefix = arr[arr.length-1] + '-';
		var dirs = UTIL.getDirectoriesSync(root_path);

		if (default_prefix)
			prefix = default_prefix;
		
		//LOG.warn('default_prefix: ' + default_prefix + ' prefix: ' + prefix + ' paths to check:');
		for (var i in dirs) {
			//LOG.warn(dirs[i]);
			if (dirs[i].startsWith(prefix)) { 
				SR.Settings.MOD_PATHS.push(SR.path.resolve(root_path, dirs[i]));
			}
		}
	}
function (root_path, default_prefix) {
		var arr = SR.Settings.SR_PATH.split(SR.path.sep);
		var prefix = arr[arr.length-1] + '-';
		var dirs = UTIL.getDirectoriesSync(root_path);

		if (default_prefix)
			prefix = default_prefix;
		
		//LOG.warn('default_prefix: ' + default_prefix + ' prefix: ' + prefix + ' paths to check:');
		for (var i in dirs) {
			//LOG.warn(dirs[i]);
			if (dirs[i].startsWith(prefix)) { 
				SR.Settings.MOD_PATHS.push(SR.path.resolve(root_path, dirs[i]));
			}
		}
	}
function ( root_path , default_prefix ) { var arr = SR . Settings . SR_PATH . split ( SR . path . sep ) ; var prefix = arr [ arr . length - 1 ] + '-' ; var dirs = UTIL . getDirectoriesSync ( root_path ) ; if ( default_prefix ) prefix = default_prefix ; //LOG.warn('default_prefix: ' + default_prefix + ' prefix: ' + prefix + ' paths to check:'); for ( var i in dirs ) { //LOG.warn(dirs[i]); if ( dirs [ i ] . startsWith ( prefix ) ) { SR . Settings . MOD_PATHS . push ( SR . path . resolve ( root_path , dirs [ i ] ) ) ; } } }
build module path from a root path
build module path from a root path