Fix application directory for on-Pi examples (#47)

This commit is contained in:
Peter Johnson 2019-01-11 01:11:03 -08:00 committed by GitHub
parent bb71953788
commit e78e471f97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,15 +32,15 @@ void Application::Set(wpi::StringRef appType,
if (appType == "builtin") {
appCommand = "/usr/local/frc/bin/multiCameraServer";
} else if (appType == "example-java") {
appDir = "java-multiCameraServer";
appDir = "examples/java-multiCameraServer";
appCommand =
"env LD_LIBRARY_PATH=/usr/local/frc/lib java -jar "
"build/libs/java-multiCameraServer-all.jar";
} else if (appType == "example-cpp") {
appDir = "cpp-multiCameraServer";
appDir = "examples/cpp-multiCameraServer";
appCommand = "./multiCameraServerExample";
} else if (appType == "example-python") {
appDir = "python-multiCameraServer";
appDir = "examples/python-multiCameraServer";
appCommand = "./multiCameraServer.py";
} else if (appType == "upload-java") {
appCommand =