public void EnableScript(bool?usePython = null)
        {
            if (!usePython.HasValue)
            {
                if (SystemConfiguration.ApplicationName.ToLower() == "jkhd" ||
                    SystemConfiguration.ApplicationName.ToLower() == "hd" ||
                    SystemConfiguration.ApplicationName.ToLower() == "cd")
                {
                    usePython = false;
                }
                else
                {
                    usePython = true;
                }
            }

            PythonEntityScript pythonScript = new PythonEntityScript();

            m_sp.SetDefaultService <IFileScript>(pythonScript);
            if (!usePython.Value)
            {
                IEntityScript script = new PythonandEvalutionEngineEntityScript();
                m_sp.SetDefaultService <IScript>(script);
                m_sp.SetDefaultService <IEntityScript>(script);
            }
            else
            {
                m_sp.SetDefaultService <IScript>(pythonScript);
                m_sp.SetDefaultService <IEntityScript>(pythonScript);
            }
        }
        public void EnableScript(bool? usePython = null)
        {
            if (!usePython.HasValue)
            {
                if (SystemConfiguration.ApplicationName.ToLower() == "jkhd"
                    || SystemConfiguration.ApplicationName.ToLower() == "hd"
                    || SystemConfiguration.ApplicationName.ToLower() == "cd")
                {
                    usePython = false;
                }
                else
                {
                    usePython = true;
                }
            }

            PythonEntityScript pythonScript = new PythonEntityScript();
            m_sp.SetDefaultService<IFileScript>(pythonScript);
            if (!usePython.Value)
            {
                IEntityScript script = new PythonandEvalutionEngineEntityScript();
                m_sp.SetDefaultService<IScript>(script);
                m_sp.SetDefaultService<IEntityScript>(script);
            }
            else
            {
                m_sp.SetDefaultService<IScript>(pythonScript);
                m_sp.SetDefaultService<IEntityScript>(pythonScript);
            }
        }