diff options
author | jblum | 2008-09-28 03:35:21 +0000 |
---|---|---|
committer | jblum | 2008-09-28 03:35:21 +0000 |
commit | 0174f42a56c3e95008ffc6a9771f2bb2d155f0f5 (patch) | |
tree | 12dc3767a96b89d4e428e44691f01b4ef9e24d99 /grc/src/gui/Preferences.py | |
parent | ff9c2110d832a0d3b097eab9ca31562f91566404 (diff) | |
download | gnuradio-0174f42a56c3e95008ffc6a9771f2bb2d155f0f5.tar.gz gnuradio-0174f42a56c3e95008ffc6a9771f2bb2d155f0f5.tar.bz2 gnuradio-0174f42a56c3e95008ffc6a9771f2bb2d155f0f5.zip |
freedesktop
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9668 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src/gui/Preferences.py')
-rw-r--r-- | grc/src/gui/Preferences.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |