Determine python version from python module directly

This commit is contained in:
baldurk
2026-03-13 13:07:44 +00:00
parent d32b8a0371
commit 6e3a0201a8
6 changed files with 36 additions and 14 deletions
+4 -4
View File
@@ -846,7 +846,7 @@ public:
virtual void AddOptions(cmdline::parser &parser)
{
parser.set_footer(
#if PYTHON_VERSION_MINOR > 0
#if PYTHON_AVAILABLE == 1
"<unit|functional>"
#else
"<unit>"
@@ -876,7 +876,7 @@ public:
rest.erase(rest.begin());
if(mode != "unit"
#if PYTHON_VERSION_MINOR > 0
#if PYTHON_AVAILABLE == 1
&& mode != "functional"
#endif
)
@@ -898,9 +898,9 @@ public:
{
if(mode == "unit")
return RENDERDOC_RunUnitTests("renderdoccmd test unit", args);
#if PYTHON_VERSION_MINOR > 0
#if PYTHON_AVAILABLE == 1
else if(mode == "functional")
return RENDERDOC_RunFunctionalTests(PYTHON_VERSION_MINOR, args);
return RENDERDOC_RunFunctionalTests(args);
#endif
std::cerr << "Unsupported test frame work '" << mode << "'" << std::endl << std::endl;