Esempio n. 1
0
        /// <summary>
        /// Cleanup resources upon shutdown of the Python runtime.
        /// </summary>
        internal static void Shutdown()
        {
            if (Runtime.Py_IsInitialized() == 0)
            {
                return;
            }

            TeardownNameSpaceTracking();
            clrModule.ResetModuleMembers();
            Runtime.Py_CLEAR(ref py_clr_module !);

            root.Dispose();
            root = null !;
        }