File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ void AIProcessingPage::OnPageActivated() {
4646
4747 // Check if Python is installed for AI Processing
4848 // In Debug mode, skip installation dialog (assume developer has configured environment)
49- #ifdef NDEBUG
49+ #if defined( NDEBUG) || defined(__linux__)
5050 // Release mode: check Python and offer installation
5151 PythonManager pythonManager;
5252
Original file line number Diff line number Diff line change @@ -73,16 +73,16 @@ PythonManager::PythonManager(QObject *parent)
7373 SetStatus (Status::NotInstalled, " Python installed but packages missing" );
7474 }
7575 } else {
76- #ifndef NDEBUG
77- // Debug mode only: check if system Python 3.9 with required packages exists
76+ #if !defined( NDEBUG) && !defined(__linux__)
77+ // Debug mode on macOS/Windows only: check if system Python 3.9 exists
7878 // This allows developers to use their existing Python environment
7979 if (CheckSystemPython ()) {
8080 SetStatus (Status::Installed, " Using system Python 3.9 with required packages" );
8181 } else {
8282 SetStatus (Status::NotInstalled, " Python not installed" );
8383 }
8484#else
85- // Release mode: Only use bundled Python, never fall back to system Python
85+ // Release mode OR Linux : Only use App Python, never fall back to system Python
8686 SetStatus (Status::NotInstalled, " Python not installed" );
8787#endif
8888 }
Original file line number Diff line number Diff line change @@ -97,8 +97,9 @@ bool TranscoderBMF::setup_python_environment() {
9797 BMFLOG (BMF_WARNING) << " BMF_ROOT_PATH not set. Please set it in environment or CMake." ;
9898 BMFLOG (BMF_WARNING) << " Example: export BMF_ROOT_PATH=/path/to/bmf" ;
9999 }
100-
100+ # ifndef __linux__
101101 return true ; // Debug mode always succeeds (uses system Python)
102+ #endif
102103#endif
103104
104105 // Release mode: Set up PYTHONPATH for bundled BMF libraries and external Python
You can’t perform that action at this time.
0 commit comments