Add cachedir variable allowing to move all data directories by setting a single value. Closes issue #270

This commit is contained in:
Jean-Francois Dockes
2016-04-08 15:09:15 +02:00
parent b995cfb4e8
commit f3820471e4
7 changed files with 110 additions and 41 deletions
+1 -11
View File
@@ -220,17 +220,7 @@ bool Aspell::ok() const
string Aspell::dicPath()
{
string ccdir;
m_config->getConfParam("aspellDicDir", ccdir);
if (ccdir.empty()) {
ccdir = m_config->getConfDir();
} else {
ccdir = path_tildexpand(ccdir);
// If not an absolute path, compute relative to config dir
if (!path_isabsolute(ccdir))
ccdir = path_cat(m_config->getConfDir(), ccdir);
}
string ccdir = m_config->getAspellcacheDir();
return path_cat(ccdir, string("aspdict.") + m_lang + string(".rws"));
}