remove expanduser

svn: r6220
This commit is contained in:
Don Allingham 2006-03-29 04:46:26 +00:00
parent b63f2ab86d
commit 0c17b53d2e
2 changed files with 4 additions and 5 deletions

View File

@ -337,9 +337,8 @@ class ArgHandler:
#self.parent.cl = bool(self.exports or self.actions or self.parent.cl)
# Create dir for imported database(s)
self.impdir_path = os.path.expanduser("~/.gramps/import" )
self.imp_db_path = os.path.expanduser(
"~/.gramps/import/import_db.grdb" )
self.impdir_path = os.path.join(const.home_dir,"import" )
self.imp_db_path = os.path.join(self.impdir_path, "import_db.grdb" )
if not os.path.isdir(self.impdir_path):
try:
os.mkdir(self.impdir_path,0700)
@ -437,7 +436,7 @@ class ArgHandler:
os._exit(1)
elif format == 'gramps-pkg':
# Create tempdir, if it does not exist, then check for writability
tmpdir_path = os.path.expanduser("~/.gramps/tmp" )
tmpdir_path = os.path.join(const.home_dir,"tmp")
if not os.path.isdir(tmpdir_path):
try:
os.mkdir(tmpdir_path,0700)

View File

@ -798,7 +798,7 @@ class StyleSheetList:
"""
defstyle.set_name('default')
self.map = { "default" : defstyle }
self.file = os.path.expanduser("~/.gramps/" + file)
self.file = os.path.join(const.home_dir,file)
self.parse()
def delete_style_sheet(self,name):