Commit 1d146aad authored by Alexander Lapshin's avatar Alexander Lapshin

Merge branch 'master' of https://gitlab.ancprotek.ru/alapshin/common

.
parents a124f8db 3578567a
......@@ -30,6 +30,14 @@ static void InitDataA(BNOAstroBase& ab, myXML::Document& doc, bool noAtm = false
std::string configFile;
LoadXML(doc.GetBody().GetRoot(),"Config",configFile);
if (configFile == "%ASTROBASE%") {
const char* env_astro = std::getenv("ASTROBASE");
if (!env_astro) {
throw (Exp() << "no env variable ASTROBASE found");
}
configFile = std::string(env_astro);
}
ab.SetCfgFile(configFile.c_str());
if (ab.Init(TimeGD(1, 1, 1957, 0, 0, 0, 0), TimeGD(1, 1, 2500, 0, 0, 0, 0), noAtm, loadPlanets)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment