From 0174f42a56c3e95008ffc6a9771f2bb2d155f0f5 Mon Sep 17 00:00:00 2001 From: jblum Date: Sun, 28 Sep 2008 03:35:21 +0000 Subject: freedesktop git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9668 221aa14e-8319-0410-a670-987f0aec2ac5 --- grc/src/gui/Preferences.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grc/src/gui/Preferences.py') diff --git a/grc/src/gui/Preferences.py b/grc/src/gui/Preferences.py index 08b3da5cc..80c4232b8 100644 --- a/grc/src/gui/Preferences.py +++ b/grc/src/gui/Preferences.py @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA """ -from .. platforms.base.Constants import HOME_DIR, FLOW_GRAPH_DTD +from .. platforms.base.Constants import FLOW_GRAPH_DTD from .. utils import ParseXML import Messages import os @@ -38,7 +38,7 @@ class _Preferences(object): #get prefs block self._prefs_block = platform.get_prefs_block() #prefs file path - self._prefs_file_path = os.path.join(HOME_DIR, self._prefs_block.get_param('prefs_file').get_value()) + self._prefs_file_path = os.path.join(os.path.expanduser('~'), self._prefs_block.get_param('prefs_file').get_value()) #load try: ParseXML.validate_dtd(self._prefs_file_path, FLOW_GRAPH_DTD) -- cgit