Fix profiles and activity dir permissions.

This commit is contained in:
Marco Pesenti Gritti 2007-11-28 19:42:51 +01:00
parent 6046c8ed46
commit 586d6caff1
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ class Bundle:
raise AlreadyInstalledException
if not os.path.isdir(install_dir):
os.mkdir(install_dir)
os.mkdir(install_dir, 0775)
# zipfile provides API that in theory would let us do this
# correctly by hand, but handling all the oddities of

View File

@ -55,7 +55,7 @@ def get_profile_path(path=None):
base = os.path.join(os.path.expanduser('~/.sugar'), profile_id)
if not os.path.isdir(base):
try:
os.makedirs(base)
os.makedirs(base, 0770)
except OSError, exc:
print "Could not create user directory."