mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-25 07:56:33 +00:00
Run scripts in their place when they are on disk
* We only write the pytmp/script.py for unsaved scripts, so they can be recovered.
This commit is contained in:
@@ -2381,19 +2381,7 @@ void PythonContext::LaunchDebugger(QWidget *window, PersistentConfig &config, QS
|
||||
return;
|
||||
|
||||
if(context_location.isEmpty())
|
||||
{
|
||||
for(QString path : QStandardPaths::standardLocations(QStandardPaths::AppDataLocation))
|
||||
{
|
||||
QDir tmpDir(path);
|
||||
tmpDir.mkpath(lit("pytmp"));
|
||||
tmpDir.cd(lit("pytmp"));
|
||||
if(tmpDir.exists())
|
||||
{
|
||||
context_location = tmpDir.absolutePath();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
||||
// don't overwrite an existing file, to allow user customisation
|
||||
QDir context_dir(context_location);
|
||||
|
||||
Reference in New Issue
Block a user