Changeset 3509 for branch/PacketManipulator/PM/Manager/PreferenceManager.py
- Timestamp:
- 08/17/08 18:14:47 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branch/PacketManipulator/PM/Manager/PreferenceManager.py
r3499 r3509 25 25 26 26 import sys 27 import os.path 27 28 28 29 from xml.sax import handler, make_parser … … 30 31 from xml.sax.xmlreader import AttributesNSImpl 31 32 33 from PM.Core.Const import PM_HOME 32 34 from PM.Core.Atoms import Singleton 33 35 … … 180 182 181 183 def __init__(self): 182 self.fname = 'pm-prefs.xml'184 self.fname = os.path.join(PM_HOME, 'pm-prefs.xml') 183 185 184 186 try: … … 208 210 def __getitem__(self, x): 209 211 return self.options[x] 210 211 if __name__ == "__main__":212 Prefs().load_options('test.xml')213
