From 909d94c7def1df2ee84922b9d61a12723daeaab3 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Mon, 11 Feb 2019 00:09:19 -0800 Subject: [PATCH] Run python3 explicitly for python applications (#102) This avoids the need for a shebang line. --- deps/tools/configServer/src/Application.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/tools/configServer/src/Application.cpp b/deps/tools/configServer/src/Application.cpp index 3145c97..7d54f3f 100644 --- a/deps/tools/configServer/src/Application.cpp +++ b/deps/tools/configServer/src/Application.cpp @@ -44,7 +44,7 @@ void Application::Set(wpi::StringRef appType, } else if (appType == "example-python") { appDir = "examples/python-multiCameraServer"; appEnv = "export PYTHONUNBUFFERED=1"; - appCommand = "./multiCameraServer.py"; + appCommand = "/usr/bin/python3 multiCameraServer.py"; } else if (appType == "upload-java") { appCommand = "env LD_LIBRARY_PATH=/usr/local/frc/lib java -jar uploaded.jar"; @@ -52,7 +52,7 @@ void Application::Set(wpi::StringRef appType, appCommand = "./uploaded"; } else if (appType == "upload-python") { appEnv = "export PYTHONUNBUFFERED=1"; - appCommand = "./uploaded.py"; + appCommand = "/usr/bin/python3 uploaded.py"; } else if (appType == "custom") { return; } else {