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); }
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"); } }