Import Idf - Python3

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
renatorivo
Posts: 2096
Joined: Tue Feb 21, 2012 8:07 pm
Location: Torino - Italy

Import Idf - Python3

Postby renatorivo » Fri Jun 14, 2019 9:05 pm

C:\Users\User...\FreeCAD_0.19.16944_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Idf\Idf.py

Code: Select all

25 import FreeCAD, Part, os, FreeCADGui, __builtin__
.....
57 pythonopen = __builtin__.open 
from https://docs.python.org/3.0/whatsnew/3.0.html
Renamed module __builtin__ to builtins (removing the underscores, adding an ‘s’). The __builtins__ variable found in most global namespaces is unchanged. To modify a builtin, you should use builtins, not __builtins__!