option to indicate running in threaded env, related to #13
This commit is contained in:
@@ -93,7 +93,7 @@ namespace dopt.DeltaBarth
|
||||
/// </summary>
|
||||
/// <param name="runtimePath">Der Pfad zur Python-Runtime. Dieser muss zu dem Ordner zeigen,
|
||||
/// in welchem die Runtime in Form eines Ordners mit dem Namen "python" abliegt.</param>
|
||||
public Plugin(string runtimePath) : base(SharpPython.PyOptimLevels.O, runtimePath: runtimePath, verbose: false)
|
||||
public Plugin(string runtimePath) : base(SharpPython.PyOptimLevels.O, threaded: true, runtimePath: runtimePath, verbose: false)
|
||||
{
|
||||
base.Initialise();
|
||||
using (Py.GIL())
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="dopt.SharpPython" Version="0.4.1" />
|
||||
<PackageReference Include="dopt.SharpPython" Version="0.4.2-alpha3" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user