run executable with correct working dir

This commit is contained in:
Konstantin Käfer
2014-06-01 22:28:12 +02:00
parent 552246f4b0
commit 6bbac8559f
2 changed files with 2 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ linux: config.gypi linux/llmr-app.gyp node
# Executes the Linux binary
run-linux: linux
build/$(BUILDTYPE)/mapbox-gl
(cd build/$(BUILDTYPE) && ./mapbox-gl)

View File

@@ -43,7 +43,7 @@ int main(int argc, char *argv[]) {
sigaction(SIGINT, &sigIntHandler, NULL);
// read default stylesheet from disk
std::ifstream stylefile("./build/Release/style.min.js");
std::ifstream stylefile("./style.min.js");
std::stringstream stylejson;
stylejson << stylefile.rdbuf();