コード例 #1
0
ファイル: PBXPath.cs プロジェクト: li5414/Usdk
 public static string GetFullPath(string path)
 {
     if (PBXPath.IsPathRooted(path))
     {
         return(path);
     }
     return(PBXPath.Combine(PBXPath.GetCurrentDirectory(), path));
 }
コード例 #2
0
ファイル: PBXPath.cs プロジェクト: li5414/Usdk
        public static string GetCurrentDirectory()
        {
            if (Environment.OSVersion.Platform != PlatformID.MacOSX && Environment.OSVersion.Platform != PlatformID.Unix)
            {
                throw new Exception("PBX project compatible current directory can only obtained on OSX");
            }
            string path = PBXPath.FixSlashes(Directory.GetCurrentDirectory());

            if (!PBXPath.IsPathRooted(path))
            {
                return("/" + path);
            }
            return(path);
        }