Beispiel #1
0
 internal static void InstallPythonModBootstrapper()
 {
     tracker = ModClassCreationTracker.Create(typeof(PythonLoaderMod));
     tracker.ModDoneCreating +=
         delegate(object sender, ModClassCreationTracker.ModDoneCreatingEventArgs e)
     {
         if (Directory.Exists(Path.Combine(e.mod.RootDir, "Python/")))
         {
             PythonAssembly.GetType("Python.PythonModManager").GetMethod("PopulateWithNewMod",
                                                                         BindingFlags.Public | BindingFlags.Static)
             .Invoke(null, new object[] { e.mod });
         }
     };
 }
Beispiel #2
0
 internal static void InstallConsoleButton()
 {
     PythonAssembly.GetType("Python.ConsoleButton").GetMethod("Install",
                                                              BindingFlags.Public | BindingFlags.Static)
     .Invoke(null, new object[] { });
 }