This commit is contained in:
Eelco Dolstra 2016-02-18 19:40:27 +01:00
commit a52fd0dbd0

View file

@ -78,8 +78,6 @@ NixRepl::NixRepl(const Strings & searchPath)
, staticEnv(false, &state.staticBaseEnv) , staticEnv(false, &state.staticBaseEnv)
{ {
curDir = absPath("."); curDir = absPath(".");
store = openStore();
} }
@ -638,6 +636,7 @@ int main(int argc, char * * argv)
return true; return true;
}); });
store = openStore();
NixRepl repl(searchPath); NixRepl repl(searchPath);
repl.mainLoop(files); repl.mainLoop(files);
}); });