public static string GetFullPath(string path) { if (PBXPath.IsPathRooted(path)) { return(path); } return(PBXPath.Combine(PBXPath.GetCurrentDirectory(), path)); }
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); }