From 6666f822d6acba9a28aea8373be501af7989f8ef Mon Sep 17 00:00:00 2001 From: Darice Date: Wed, 8 May 2024 13:33:42 -0600 Subject: [PATCH] python avail check for windbosse --- test/ssc_test/cmod_windpower_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/ssc_test/cmod_windpower_test.cpp b/test/ssc_test/cmod_windpower_test.cpp index 4dbcfcd39..7167f8175 100644 --- a/test/ssc_test/cmod_windpower_test.cpp +++ b/test/ssc_test/cmod_windpower_test.cpp @@ -541,6 +541,10 @@ TEST(Turbine_powercurve_cmod_windpower_eqns, Case4) { } bool setup_python() { + if (!std::getenv("SAMNTDIR")){ + std::cerr << "Python not configured."; + return false; + } #ifdef __WINDOWS__ auto python_dir = std::string(std::getenv("SAMNTDIR")) + "\\deploy\\runtime\\python\\"; #else