void RbSettings::setWorkingDirectory(const std::string &wd) { RevBayesCore::RbFileManager fm = RevBayesCore::RbFileManager( wd ); if ( !fm.isDirectory() ) { throw RbException("Cannot set the current directory to '" + wd + "'."); } workingDirectory = fm.getFullFilePath(); // save the current settings for the future. writeUserSettings(); }
void RbSettings::setModuleDir(const std::string &md) { RevBayesCore::RbFileManager fm = RevBayesCore::RbFileManager(md); if ( !fm.isDirectory() ) { throw RbException("Cannot set the help directory to '" + md + "'."); } moduleDir = fm.getFullFilePath(); // save the current settings for the future. writeUserSettings(); }