diff options
Diffstat (limited to 'src/setup/profile.py')
-rw-r--r-- | src/setup/profile.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/setup/profile.py b/src/setup/profile.py new file mode 100644 index 0000000..0aceea3 --- /dev/null +++ b/src/setup/profile.py @@ -0,0 +1,30 @@ +''' + +''' + +from lxml import etree # using lxml for XML processing +from utils import strs # string constants +from utils import utils # some XML utilities + + + +class Profile(object): + ''' + ''' + + def __init__(self, path): + ''' + Constructor + ''' + + #open up the mpro file and read in its basic properties + root = utils.getXMLRoot(path) + self.name = root.xpath(strs.XP_ProfileName)[0] + self.path = path + pass + + def getName(self): + '''Returns the name of the profile's user''' + return self.name + + |