예제 #1
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)
예제 #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)
예제 #3
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
예제 #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