示例#1
0
        public string GetScriptDir(string dommePersonalityName, string type, SessionPhase sessionPhase)
        {
            var baseDir = GetPersonalityFolder(dommePersonalityName) + Path.DirectorySeparatorChar;

            if (sessionPhase == SessionPhase.Modules)
            {
                baseDir += "Modules" + Path.DirectorySeparatorChar;
            }
            else
            {
                baseDir += type + Path.DirectorySeparatorChar + sessionPhase.ToString() + Path.DirectorySeparatorChar;
            }

            return(baseDir);
        }
示例#2
0
 public string GetScriptCld(string dommePersonalityName, SessionPhase sessionPhase)
 {
     if (sessionPhase == SessionPhase.Modules)
     {
         return(GetPersonalityFolder(dommePersonalityName) + Path.DirectorySeparatorChar + "System" + Path.DirectorySeparatorChar + "ModuleCheckList.cld");
     }
     else
     {
         return(GetPersonalityFolder(dommePersonalityName) + Path.DirectorySeparatorChar + "System" + Path.DirectorySeparatorChar + sessionPhase.ToString() + "CheckList.cld");
     }
 }