remove expanduser

svn: r6219
This commit is contained in:
Don Allingham
2006-03-29 04:24:39 +00:00
parent dcec2c11c9
commit 4c3e96b163
6 changed files with 26 additions and 16 deletions

View File

@@ -308,10 +308,10 @@ class Exporter:
if len(default_dir)<=1:
default_dir = Config.get_last_import_dir()
if len(default_dir)<=1:
default_dir = '~/'
default_dir = const.user_home
if ext == 'gramps':
new_filename = os.path.expanduser(default_dir + 'data.gramps')
new_filename = os.path.join(default_dir,'data.gramps')
elif ext == 'burn':
new_filename = os.path.basename(self.dbstate.db.get_save_path())
else: