Skip to content

Commit

Permalink
Revert "Removed useless lines"
Browse files Browse the repository at this point in the history
This reverts commit 363fe35.
  • Loading branch information
openbullet committed Jun 5, 2021
1 parent 9bf67f7 commit 697535d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OpenBullet2/Shared/Debugger.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ private async Task Run()
data.Objects.Add("httpClient", httpClient);
var runtime = Python.CreateRuntime();
var pyengine = runtime.GetEngine("py");
var pco = (PythonCompilerOptions)pyengine.GetCompilerOptions();
pco.Module &= ~ModuleOptions.Optimized;
data.Objects.Add("ironPyEngine", pyengine);
data.AsyncLocker = new();

Expand Down
2 changes: 2 additions & 0 deletions RuriLib/Models/Jobs/MultiRunJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,8 @@ public override async Task Start()
asyncLocker = new();
var runtime = Python.CreateRuntime();
var pyengine = runtime.GetEngine("py");
var pco = (PythonCompilerOptions)pyengine.GetCompilerOptions();
pco.Module &= ~ModuleOptions.Optimized;

long index = 0;
var workItems = DataPool.DataList.Select(line =>
Expand Down

0 comments on commit 697535d

Please sign in to comment.