Fixed pylint warnings for PathGui family

This commit is contained in:
Markus Lampert
2019-06-30 00:34:35 -07:00
parent b094ce7370
commit 25c99fad4d
2 changed files with 5 additions and 5 deletions

View File

@@ -47,6 +47,7 @@ else:
def _getProperty(obj, prop):
o = obj
attr = obj
name = None
for name in prop.split('.'):
o = attr
if not hasattr(o, name):
@@ -62,12 +63,12 @@ def _getProperty(obj, prop):
def getProperty(obj, prop):
'''getProperty(obj, prop) ... answer obj's property defined by its canonical name.'''
o, attr, name = _getProperty(obj, prop)
o, attr, name = _getProperty(obj, prop) # pylint: disable=unused-variable
return attr
def setProperty(obj, prop, value):
'''setProperty(obj, prop, value) ... set the property value of obj's property defined by its canonical name.'''
o, attr, name = _getProperty(obj, prop)
o, attr, name = _getProperty(obj, prop) # pylint: disable=unused-variable
if o and name:
setattr(o, name, value)

View File

@@ -21,8 +21,8 @@
# * USA *
# * *
# ***************************************************************************
# pylint: disable=unused-variable
import PathScripts
import PathScripts.PathLog as PathLog
LOGLEVEL = False
@@ -36,7 +36,7 @@ else:
Processed = False
def Startup():
global Processed
global Processed # pylint: disable=global-statement
if not Processed:
PathLog.debug('Initializing PathGui')
from PathScripts import PathAdaptiveGui
@@ -74,7 +74,6 @@ def Startup():
except ImportError:
import FreeCAD
FreeCAD.Console.PrintError("OpenCamLib is not working!\n")
pass
from PathScripts import PathToolController
from PathScripts import PathToolControllerGui
from PathScripts import PathToolLibraryManager