--- a/drToolBarDialog.py
+++ b/drToolBarDialog.py
@@ -424,13 +424,15 @@
             drScrolledMessageDialog.ShowMessage(self, ("Succesfully updated the current instance of DrPython.\nClick Save to make it permanent."), "Updated ToolBar")
 
     def OnbtnSave(self, event):
-        toolbarfile = self.userdatadirectory + "/toolbar.dat"
+        #toolbarfile = self.userdatadirectory + "/toolbar.dat"
+        toolbarfile = self.parent.userdatadirectory + "/toolbar.dat"
 
         msg = "Succesfully wrote to:\n"  + toolbarfile + "\nand updated the current instance of DrPython."
 
         #Custom Bitmaps.
         if self.customNames:
-            toolbarcustomfile = self.userdatadirectory + "/toolbar.custom.icons.dat"
+            #toolbarcustomfile = self.userdatadirectory + "/toolbar.custom.icons.dat"
+            toolbarcustomfile = self.parent.userdatadirectory + "/toolbar.custom.icons.dat"
             f = file(toolbarcustomfile, 'w')
             x = 0
             l = len(self.customNames)