Skip to content

Commit e4e32a4

Browse files
change assembly selection to get correct resources
1 parent 8b1c153 commit e4e32a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

RevitPythonShell/RevitPythonShellApplication.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ public static IEnumerable<Command> GetCommands(XDocument repository)
339339
int i = 0;
340340
foreach (var commandNode in repository.Root.Descendants("Command") ?? new List<XElement>())
341341
{
342-
var addinAssembly = typeof(RevitPythonShellApplication).Assembly;
342+
var addinAssembly = typeof(RpsExternalApplicationBase).Assembly;
343343
var commandName = commandNode.Attribute("name").Value;
344344
var commandSrc = commandNode.Attribute("src").Value;
345345
var group = commandNode.Attribute("group") == null ? "" : commandNode.Attribute("group").Value;
@@ -352,7 +352,7 @@ public static IEnumerable<Command> GetCommands(XDocument repository)
352352
}
353353
else
354354
{
355-
largeImage = GetEmbeddedPng(addinAssembly, "RevitPythonShell.Resources.PythonScript32x32.png");
355+
largeImage = GetEmbeddedPng(addinAssembly, "RpsRuntime.Resources.PythonScript32x32.png");
356356
}
357357

358358
ImageSource smallImage = null;
@@ -363,7 +363,7 @@ public static IEnumerable<Command> GetCommands(XDocument repository)
363363
}
364364
else
365365
{
366-
smallImage = GetEmbeddedPng(addinAssembly, "RevitPythonShell.Resources.PythonScript16x16.png");
366+
smallImage = GetEmbeddedPng(addinAssembly, "RpsRuntime.Resources.PythonScript16x16.png");
367367
}
368368

369369
yield return new Command {

0 commit comments

Comments
 (0)