def savePrefs(self):
     
     '''
     "savePrefs" stores xml data using the 'XML.py' module
     '''
     fileName = 'test1.xml'
     prefs = [('hello'),('goodbye'),('idunno')]
     filePath = os.path.join(self.filePath, 'openpipeline', 'app', 'maya', 'ui', 'prefs', fileName)
     xmlFile = XML.xmlfile(filePath)
     xmlFile.save(prefs)
Beispiel #2
0
 def savePrefs(self):
     '''
     "savePrefs" stores xml data using the 'XML.py' module
     '''
     fileName = 'test1.xml'
     prefs = [('hello'), ('goodbye'), ('idunno')]
     filePath = os.path.join(self.filePath, 'openpipeline', 'app', 'maya',
                             'ui', 'prefs', fileName)
     xmlFile = XML.xmlfile(filePath)
     xmlFile.save(prefs)
 def loadPrefs(self):
     
     '''
     "loadPrefs" loades xml data using the 'XML.py' module
     '''
     
     fileName = 'test1.xml'
     filePath = os.path.join(self.filePath, 'openpipeline', 'app', 'maya', 'ui', 'prefs', fileName)
     xmlFile = XML.xmlfile(filePath)
     prefs = xmlFile.load()
     print "prefs = %s" % prefs
Beispiel #4
0
    def loadPrefs(self):
        '''
        "loadPrefs" loades xml data using the 'XML.py' module
        '''

        fileName = 'test1.xml'
        filePath = os.path.join(self.filePath, 'openpipeline', 'app', 'maya',
                                'ui', 'prefs', fileName)
        xmlFile = XML.xmlfile(filePath)
        prefs = xmlFile.load()
        print "prefs = %s" % prefs