public static void Initialise() { if (!Directory.Exists(BaseDirectory)) { Directory.CreateDirectory(BaseDirectory); } if (!Directory.Exists(PackageDirectory)) { Directory.CreateDirectory(PackageDirectory); } if (!Directory.Exists(SettingsDirectory)) { Directory.CreateDirectory(SettingsDirectory); } if (!Directory.Exists(CacheDirectory)) { Directory.CreateDirectory(CacheDirectory); } if (!Directory.Exists(AppDataDirectory)) { Directory.CreateDirectory(AppDataDirectory); } if (!Directory.Exists(ReposDirectory)) { Directory.CreateDirectory(ReposDirectory); } if (!Directory.Exists(RepoCatalogDirectory)) { Directory.CreateDirectory(RepoCatalogDirectory); } if (!Directory.Exists(SnippetsFolder)) { Directory.CreateDirectory(SnippetsFolder); } if (!Directory.Exists(InBuiltSnippetsFolder)) { Directory.CreateDirectory(InBuiltSnippetsFolder); } if (!Directory.Exists(ExtensionsFolder)) { Directory.CreateDirectory(ExtensionsFolder); } if (Platform.PlatformIdentifier == PlatformID.MacOSX) { var paths = PlatformSupport.GetSystemPaths(); Environment.SetEnvironmentVariable("PATH", string.Join(":", paths)); } }