FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.
C++ ai-agentsalgorithmic-tradingbloomberg-terminalcppfinancefinancial-marketsfintechgood-first-issueinvestmentinvestment-researchmachine-learningopensourcepythonqtquantitative-financestock-markettrading
Add debug logging for Python path resolution in production
tilakpatel22eff0fea7a957
diff --git a/fincept-terminal-desktop/src-tauri/src/utils/python.rs b/fincept-terminal-desktop/src-tauri/src/utils/python.rsindex d06d33447..6cf56fda0 100644--- a/fincept-terminal-desktop/src-tauri/src/utils/python.rs+++ b/fincept-terminal-desktop/src-tauri/src/utils/python.rs@@ -24,10 +24,26 @@ pub fn get_python_path(app: &tauri::AppHandle) -> Result<PathBuf, String> {"python"};- Ok(resource_dir+ let python_path = resource_dir.join("resources").join("python")- .join(python_exe))+ .join(python_exe);++ // Debug logging+ eprintln!("[Python] Resource dir: {}", resource_dir.display());+ eprintln!("[Python] Looking for Python at: {}", python_path.display());+ eprintln!("[Python] Python exists: {}", python_path.exists());++ // Verify Python exists+ if !python_path.exists() {+ return Err(format!(+ "Python executable not found at: {}. Resource dir: {}",+ python_path.display(),+ resource_dir.display()+ ));+ }++ Ok(python_path)}/// Get the bundled Bun executable path at runtime