PyCharm行为与命令行ironpython不一致

时间:2014-05-08 23:26:25

标签: import ironpython pycharm

我有一个我在pycharm中启动的ironpython脚本。该脚本导入自定义c#程序集并使用其中的类。在命令行启动此脚本时,一切都很好。当我尝试在pycharm中启动脚本时出现问题。我收到这样的错误:

SystemError: Could not load file or assembly 'great_assembly.dll' or one of its dependencies.  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

这来自我粘贴在下面的行。这一行只是从设置对象中检索路径(字符串)。

clr.AddReferenceToFileAndPath(self.settings.__getitem__('greatAssembly'))

运行配置是完全标准的。它具有所有默认设置。它使用正确的解释器(IPY 2.7)。任何人都知道为什么这可能会出现在pycharm而不是命令行?

0 个答案:

没有答案