Material: Editor and import, fix openfile and savefile if no filename is given, make open and save work the same way

This commit is contained in:
Bernd Hahnebach
2018-06-01 08:21:28 +02:00
parent 428e9ea5ed
commit bf11a5f239
2 changed files with 5 additions and 4 deletions

View File

@@ -122,7 +122,6 @@ def write(filename,dictionary):
user[k] = i
# write header
rev = FreeCAD.ConfigGet("BuildVersionMajor")+"."+FreeCAD.ConfigGet("BuildVersionMinor")+" "+FreeCAD.ConfigGet("BuildRevision")
filename = filename[0]
if isinstance(filename,unicode):
import sys
filename = filename.encode(sys.getfilesystemencoding())