Make relative paths relative rippled.conf.

This commit is contained in:
Arthur Britto
2013-01-21 13:42:53 -08:00
parent a6793b3d3b
commit fafe1e2835
2 changed files with 2 additions and 3 deletions

View File

@@ -104,7 +104,7 @@ void Config::setup(const std::string& strConf, bool bTestNet, bool bQuiet)
{
// --conf=<path> : everything is relative that file.
CONFIG_FILE = strConfFile;
CONFIG_DIR = CONFIG_FILE;
CONFIG_DIR = boost::filesystem::absolute(CONFIG_FILE);
CONFIG_DIR.remove_filename();
DATA_DIR = CONFIG_DIR / strDbPath;
}