Skip to content

Commit

Permalink
Update PythonServices.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
pinzart90 authored and zavub committed Oct 4, 2024
1 parent 6abee26 commit ba6df5e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/NodeServices/PythonServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,7 @@ private void LoadPythonEngine(Assembly assembly)
throw new Exception($"Could not get a valid PythonEngine instance by calling the {eType.Name}.{PythonEvaluatorSingletonInstance} method");
}

// Fails when called in REvit context with
// The assembly 'Python.Runtime, Version=3.1.0.0, Culture=neutral, PublicKeyToken=5000fea6cba702dd' has already loaded been loaded into this MetadataLoadContext.
// TODO: figure out what is going on
//VerifyEngineReferences(assembly,dotNetRuntimePaths.Concat(dynCorePaths));
VerifyEngineReferences(assembly,dotNetRuntimePaths.Concat(dynCorePaths));

if (GetEngine(engine.Name) == null)
{
Expand Down

0 comments on commit ba6df5e

Please sign in to comment.