Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use the assembly short name to find the embedded Python.Runtime (othe…
…r assemblies may reference it with the full name).
  • Loading branch information
tonyroberts committed Apr 11, 2014
commit dfdcfe7ed082ea3249a4fc72242c39abc9026506
3 changes: 2 additions & 1 deletion pythonnet/src/console/pythonconsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public AssemblyLoader() {
loadedAssemblies = new Dictionary<string, Assembly>();

AppDomain.CurrentDomain.AssemblyResolve += (sender, args) => {
String resourceName = new AssemblyName(args.Name).Name + ".dll";
string shortName = args.Name.Split(',')[0];
String resourceName = shortName + ".dll";

if (loadedAssemblies.ContainsKey(resourceName)) {
return loadedAssemblies[resourceName];
Expand Down