def __init__(self):
        """ MayaMenu.__init__():  set initial parameters """
        super(MayaMenu, self).__init__()

        # Set who is running
        self.userName = getpass.getuser()
        self.PCStoolsLocation = gv.toolsLocation
        self.PCSlogLocation = gv.logLocation

        # Parse the backbone XML
        self.pcsXML = ET.parse('%s/schemas/pcsSchema.xml' % gv.toolsLocation)
        self.pcsXMLcore = self.pcsXML.getiterator('Core')[0]
        self.log = None
        self.PCSMenu = None
        self.menuDict = {}

        # Expose Global Variables
        self.PCSDevelopers = eval(self.pcsXMLcore.get('devs'))
        self.PCStoolName = self.pcsXMLcore.get('PCStoolName')
        self.PCStPad = 'mtPCSG'  # runtime command prefix?

        # Set Run Time Variables
        self.PCSmenuPath = '%s/maya' % self.PCStoolsLocation
        self.PCSmenuStart = '%s/menu' % self.PCSmenuPath
        self.runTimeAnnotation = '%s Maya Tools' % self.PCStoolName
        self.menuName = 'mt_%s' % self.PCStoolName.replace(' ', '_')
        self.PCSmVersion = None

    # Any additions
    #		#-- P4 Active
    #		if not self.userXMLCore.get('P4Active'):
    #			if not self.PCSactiveTeam == 'teamB':
    #				if self.PCSP4userName and self.PCSP4server and self.PCSP4workspace:
    #					self.userXMLCore.set('P4Active', '1')
    #				else:
    #					self.userXMLCore.set('P4Active', '0')
    #			else:
    #				self.userXMLCore.set('P4Active', '0')
    #			self.userXML.write('%s/data/%s/PCS.xml' % (self.PCSlogLocation, self.userName))
    #
    #		self.p4Active = eval(self.userXMLCore.get('P4Active'))
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/core/sysGlobalMenu.py/MayaMenu.__init__/original