View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000625 | FreeCAD | Bug | public | 2012-03-06 10:04 | 2012-03-13 12:14 |
Reporter | shoogen | Assigned To | yorik | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.12 | ||||
Fixed in Version | 0.13 | ||||
Summary | 0000625: reloading python modules from Draft module breaks file handling | ||||
Description | while reloading the module the reference to the orginal python 'open' function gets lost. When opening/importing files (with handeled in this module) FreeCAD enters an endless loop. possible fix: check in which module open is defined. if open.__module__ == '__builtin__': pythonopen = open | ||||
Tags | No tags attached. | ||||
FreeCAD Information | |||||
|
We could maybe also simply use __builtins__.open everywhere instead of pythonopen... I'll have a look |
|
Done in commit f38e6da I ended up using your method, for some reason __builtins__ is not available while FreeCAD loads... |
|
this also applies to Arch/importOBJ.py |
|
Oh good catch, thanks... Fixed there too now. |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-03-06 10:04 | shoogen | New Issue | |
2012-03-07 11:04 | yorik | Status | new => assigned |
2012-03-07 11:04 | yorik | Assigned To | => yorik |
2012-03-07 11:06 | yorik | Note Added: 0001718 | |
2012-03-12 20:47 | yorik | Note Added: 0001755 | |
2012-03-12 20:47 | yorik | Status | assigned => closed |
2012-03-12 20:47 | yorik | Resolution | open => fixed |
2012-03-12 20:47 | yorik | Fixed in Version | => 0.13 |
2012-03-13 10:32 | shoogen | Note Added: 0001759 | |
2012-03-13 10:32 | shoogen | Status | closed => feedback |
2012-03-13 10:32 | shoogen | Resolution | fixed => reopened |
2012-03-13 12:14 | yorik | Note Added: 0001760 | |
2012-03-13 12:14 | yorik | Status | feedback => closed |
2012-03-13 12:14 | yorik | Resolution | reopened => fixed |