Skip to content

Commit

Permalink
Fix venv settings
Browse files Browse the repository at this point in the history
Seems like the python home was causing problems
  • Loading branch information
tmontaigu committed Dec 26, 2024
1 parent a138dfb commit b1d3c3a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/PythonConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,11 @@ void PythonConfig::preparePythonProcess(QProcess &pythonProcess) const
PythonConfigPaths PythonConfig::pythonCompatiblePaths() const
{
PythonConfigPaths paths;
paths.m_pythonHome.reset(QStringToWcharArray(m_pythonHome));
if (getVersion().minor >= 10) {
paths.m_pythonHome.reset(nullptr);
} else {
paths.m_pythonHome.reset(QStringToWcharArray(m_pythonHome));
}
paths.m_pythonPath.reset(QStringToWcharArray(m_pythonPath));
return paths;
}
Expand Down

0 comments on commit b1d3c3a

Please sign in to comment.