Index: branch/PacketManipulator/PM/Manager/PreferenceManager.py
===================================================================
--- branch/PacketManipulator/PM/Manager/PreferenceManager.py (revision 3499)
+++ branch/PacketManipulator/PM/Manager/PreferenceManager.py (revision 3509)
@@ -25,4 +25,5 @@
 
 import sys
+import os.path
 
 from xml.sax import handler, make_parser
@@ -30,4 +31,5 @@
 from xml.sax.xmlreader import AttributesNSImpl
 
+from PM.Core.Const import PM_HOME
 from PM.Core.Atoms import Singleton
 
@@ -180,5 +182,5 @@
 
     def __init__(self):
-        self.fname = 'pm-prefs.xml'
+        self.fname = os.path.join(PM_HOME, 'pm-prefs.xml')
         
         try:
@@ -208,6 +210,2 @@
     def __getitem__(self, x):
         return self.options[x]
-
-if __name__ == "__main__":
-    Prefs().load_options('test.xml')
-
