diff options
author | Trent Mick <trentm@gmail.com> | 2010-07-27 23:58:49 -0700 |
---|---|---|
committer | Trent Mick <trentm@gmail.com> | 2010-07-27 23:58:49 -0700 |
commit | bbac5c164709954e36d3adc2c3ad50d63fb49791 (patch) | |
tree | fef16437d0473d981436dc2e7e5436eea0c1912a | |
parent | 341465574a51c1e1480fbfa8d48ac280ba03dcdd (diff) | |
download | appdirs-bbac5c164709954e36d3adc2c3ad50d63fb49791.tar.gz |
fix screw up in previous checkin that changed user_data_dir instead of site_data_dir
-rw-r--r-- | lib/appdirs.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/appdirs.py b/lib/appdirs.py index ce0b1ff..03c858d 100644 --- a/lib/appdirs.py +++ b/lib/appdirs.py @@ -63,7 +63,7 @@ def user_data_dir(appname, appauthor=None, version=None, roaming=False): # on x86. See Komodo bug 42669. #TODO: Update this to try FSFindFolder and fallback to this # hardcoding for the specific failure mode. - basepath = os.path.expanduser('/Library/Application Support') + basepath = os.path.expanduser('~/Library/Application Support') else: from Carbon import Folder, Folders path = Folder.FSFindFolder(Folders.kUserDomain, @@ -106,8 +106,11 @@ def site_data_dir(appname, appauthor=None, version=None): appauthor, appname) elif sys.platform == 'darwin': if os.uname()[-1] == 'i386': - #XXX Folder.FSFindFolder() fails with error -43 on x86. See 42669. - basepath = os.path.expanduser('~/Library/Application Support') + # Folder.FSFindFolder() **used to fail** with error -43 + # on x86. See Komodo bug 42669. + #TODO: Update this to try FSFindFolder and fallback to this + # hardcoding for the specific failure mode. + basepath = os.path.expanduser('/Library/Application Support') else: from Carbon import Folder, Folders path = Folder.FSFindFolder(Folders.kLocalDomain, |