diff --git a/qrenderdoc/Windows/MainWindow.cpp b/qrenderdoc/Windows/MainWindow.cpp index 5ebc34418..9b4e01e0b 100644 --- a/qrenderdoc/Windows/MainWindow.cpp +++ b/qrenderdoc/Windows/MainWindow.cpp @@ -729,6 +729,11 @@ void MainWindow::LoadFromFilename(const QString &filename, bool temporary) { LoadCapture(filename, m_Ctx.Config().DefaultReplayOptions, temporary, true); } + else if(ext == lit("py")) + { + m_Ctx.ShowPythonShell(); + m_Ctx.GetPythonShell()->LoadScriptFromFilename(filename); + } else if(ext == lit("cap")) { OpenCaptureConfigFile(filename, false);