change API to use SharpPython runtime path variable
This commit is contained in:
parent
0094f4cb85
commit
71a3143fd3
@ -8,7 +8,8 @@ namespace dopt.DeltaBarth.Tests
|
|||||||
internal class TestPlugin : DeltaBarth.Plugin
|
internal class TestPlugin : DeltaBarth.Plugin
|
||||||
{
|
{
|
||||||
internal dynamic pyModJsonStructs;
|
internal dynamic pyModJsonStructs;
|
||||||
internal TestPlugin() : base() {
|
private const string absPath = @"A:\Arbeitsaufgaben\Delta-Barth\cs-wrapper\dopt.DeltaBarth";
|
||||||
|
internal TestPlugin() : base(absPath) {
|
||||||
using (Py.GIL())
|
using (Py.GIL())
|
||||||
{
|
{
|
||||||
pyModJsonStructs = Py.Import("delta_barth._csharp.json_types");
|
pyModJsonStructs = Py.Import("delta_barth._csharp.json_types");
|
||||||
|
|||||||
@ -37,6 +37,8 @@ namespace dopt.DeltaBarth.Tests
|
|||||||
}
|
}
|
||||||
public class TPlugin : DeltaBarth.Plugin
|
public class TPlugin : DeltaBarth.Plugin
|
||||||
{
|
{
|
||||||
|
private const string absPath = @"A:\Arbeitsaufgaben\Delta-Barth\cs-wrapper\dopt.DeltaBarth";
|
||||||
|
public TPlugin() : base(absPath) { }
|
||||||
public new JsonStructs.Credentials GetCredentials()
|
public new JsonStructs.Credentials GetCredentials()
|
||||||
{
|
{
|
||||||
return base.GetCredentials();
|
return base.GetCredentials();
|
||||||
|
|||||||
@ -23,10 +23,6 @@
|
|||||||
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="17.14.2" />
|
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="17.14.2" />
|
||||||
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="1.6.3" />
|
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="1.6.3" />
|
||||||
<PackageReference Include="MSTest" Version="3.8.3" />
|
<PackageReference Include="MSTest" Version="3.8.3" />
|
||||||
<Content Include="..\python\**\*">
|
|
||||||
<Link>python\%(RecursiveDir)/%(FileName)%(Extension)</Link>
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</Content>
|
|
||||||
<Content Include="..\CREDENTIALS.json">
|
<Content Include="..\CREDENTIALS.json">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
|||||||
@ -7,7 +7,7 @@ namespace dopt.DeltaBarth
|
|||||||
{
|
{
|
||||||
protected dynamic pyModManagement;
|
protected dynamic pyModManagement;
|
||||||
protected dynamic pyModPipeline;
|
protected dynamic pyModPipeline;
|
||||||
public Plugin() : base(verbose: false)
|
public Plugin(string runtimePath) : base(runtimePath: runtimePath, verbose: false)
|
||||||
{
|
{
|
||||||
base.Initialise();
|
base.Initialise();
|
||||||
using (Py.GIL())
|
using (Py.GIL())
|
||||||
|
|||||||
@ -6,15 +6,11 @@
|
|||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<PlatformTarget>x64</PlatformTarget>
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
<Platforms>x64</Platforms>
|
<Platforms>x64</Platforms>
|
||||||
<Version>0.1.0-alpha1</Version>
|
<Version>0.2.0</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="dopt.SharpPython" Version="0.3.0" />
|
<PackageReference Include="dopt.SharpPython" Version="0.4.0" />
|
||||||
<Content Include="..\python\**\*">
|
|
||||||
<Link>python\%(RecursiveDir)/%(FileName)%(Extension)</Link>
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</Content>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user