예제 #1
0
        private string FindMainFileFromPath(string mainFileFromPath)
        {
            string path = Platform.GetEnvironmentVariable("PATH");

            foreach (string p in path.Split(';'))
            {
                string fullPath = RubyUtils.CombinePaths(p, mainFileFromPath);
                if (Platform.FileExists(fullPath))
                {
                    return(fullPath);
                }
            }
            return(mainFileFromPath);
        }