mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Pass ride context to Python DPs when available (#4214)
Partial fix for #4095 - Python DPs now work in automatic mode using the run on save option.
This commit is contained in:
@@ -23,7 +23,8 @@ bool FixPyDataProcessor::postProcess(RideFile *rideFile, DataProcessorConfig *se
|
||||
|
||||
QString errText;
|
||||
bool useNewThread = op != "PYTHON";
|
||||
FixPyRunner pyRunner(nullptr, rideFile, useNewThread);
|
||||
Context* context = (rideFile) ? rideFile->context : nullptr;
|
||||
FixPyRunner pyRunner(context, rideFile, useNewThread);
|
||||
return pyRunner.run(pyScript->source, pyScript->iniKey, errText) == 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user