Permalink
Browse files

Set up scripting environment firsz

  • Loading branch information...
1 parent 07302c3 commit 07f644f7d3cca3abfc829b884d140bf934d3456c DennisOSRM committed Nov 22, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 extractor.cpp
View
@@ -43,6 +43,9 @@ int main (int argc, char *argv[]) {
ERR("usage: \n" << argv[0] << " <file.osm/.osm.bz2/.osm.pbf> [<profile.lua>]");
}
+ /*** Setup Scripting Environment ***/
+ ScriptingEnvironment scriptingEnvironment((argc > 2 ? argv[2] : "profile.lua"));
+
unsigned numberOfThreads = omp_get_num_procs();
if(testDataFile("extractor.ini")) {
ExtractorConfiguration extractorConfig("extractor.ini");
@@ -87,8 +90,6 @@ int main (int argc, char *argv[]) {
StringMap stringMap;
ExtractionContainers externalMemory;
- /*** Setup Scripting Environment ***/
- ScriptingEnvironment scriptingEnvironment((argc > 2 ? argv[2] : "profile.lua"));
stringMap[""] = 0;
extractCallBacks = new ExtractorCallbacks(&externalMemory, &stringMap);

0 comments on commit 07f644f

Please sign in to comment.