当我尝试从位于另一个文件夹中的Python文件导入到FreeCAD时,Im有一点问题。 Python的文件位置:c:/users/workspace/main.py
FreeCAD:c:/program files (x86)/FreeCAD0.13/bin
无法导入FreeCAD到Python
当我试图用命令from FreeCAD import *
(我追加FreeCAD的路径sys sys.path.append (" path-To-FreeCADs-BinFolder ")
我得到一个错误导入:
FreeCAD 0.13, Libs: 0.13R1828
Initialization of FreeCAD failed:
While initializing FreeCAD the following exception occurred:
''module' object has no attribute 'PrintError''
Please contact the application's support team for more information. "
但是,当我在FreeCAD的工作目录下创建一个Python文件,我的意思是像上面写的那样,导入FreeCAD。
ps:我的Python版本是2.7.5,FreeCAD是:0.13
非常感谢它的工作:) – Alchalade
并感谢从我! – interested