Import: [skip ci] whitespace improvements

This commit is contained in:
wmayer
2022-08-24 11:55:39 +02:00
parent 9b622048b8
commit de2ac32a47
2 changed files with 10 additions and 8 deletions

View File

@@ -81,4 +81,4 @@ INSTALL(
FILES_MATCHING
PATTERN "*.rub*"
)

View File

@@ -13,14 +13,16 @@
import six
import FreeCAD,FreeCADGui
import FreeCAD
import FreeCADGui
import shutil
import os, re
import os
import re
import ImportGui
import PySide
from PySide import QtGui, QtCore
from PySide import QtCore
from PySide import QtGui
import tempfile
import shutil
___stpZversion___ = "1.3.9"
# support both gz and zipfile archives
@@ -51,7 +53,7 @@ def mkz_unicode(input):
else:
input = input.decode('utf-8')
return input
####
def sayz(msg):
FreeCAD.Console.PrintMessage(msg)
@@ -73,7 +75,7 @@ def import_stpz(fn,fc,doc):
fname=os.path.splitext(os.path.basename(fn))[0]
basepath=os.path.split(fn)[0]
filepath = os.path.join(basepath,fname + u'.stp')
tempdir = tempfile.gettempdir() # get the current temporary directory
tempfilepath = os.path.join(tempdir,fname + u'.stp')
@@ -95,7 +97,7 @@ def import_stpz(fn,fc,doc):
def open(filename,doc=None):
sayz("stpZ version "+___stpZversion___)
if zf.is_zipfile(filename):
with zf.ZipFile(filename, 'r') as fz:
file_names = fz.namelist()