ActiveState / appdirs

A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".
http://pypi.python.org/pypi/appdirs
MIT License
1.05k stars 98 forks source link

Why user_data_dir in Mac OS X does not include appauthor? #80

Open rafaelcgo opened 7 years ago

rafaelcgo commented 7 years ago
>>> from appdirs import *
>>> appname = "SuperApp"
>>> appauthor = "Acme"

>>> user_data_dir(appname, appauthor)
'/Users/username/Library/Application Support/SuperApp'

Using appauthor would make things more organized: '/Users/username/Library/Application Support/Acme/SuperApp'

Blizzard uses this approach:

/Users/username/Library/Application Support/Blizzard
/Users/username/Library/Application Support/Blizzard/Diablo III
/Users/username/Library/Application Support/Blizzard/Heroes of the Storm
/Users/username/Library/Application Support/Blizzard/Heroes of the Storm/Accounts
/Users/username/Library/Application Support/Blizzard/Heroes of the Storm/Accounts/999999999
/Users/username/Library/Application Support/Blizzard/Heroes of the Storm/Accounts/999999999/1-Hero-1-3384698
/Users/username/Library/Application Support/Blizzard/Heroes of the Storm/Accounts/999999999/1-Hero-1-3384698/Banks
/Users/username/Library/Application Support/Blizzard/Heroes of the Storm/Accounts/999999999/1-Hero-1-3384698/Replays
/Users/username/Library/Application Support/Blizzard/Heroes of the Storm/Accounts/999999999/1-Hero-1-3384698/Replays/Multiplayer
/Users/username/Library/Application Support/Blizzard/Heroes of the Storm/Accounts/999999999/1-Hero-1-3384698/Saves
/Users/username/Library/Application Support/Blizzard/Heroes of the Storm/Accounts/999999999/1-Hero-1-3384698/Saves/Rejoin
/Users/username/Library/Application Support/Blizzard/Heroes of the Storm/GameLogs
/Users/username/Library/Application Support/Blizzard/Heroes of the Storm/ImageUploads
/Users/username/Library/Application Support/Blizzard/Heroes of the Storm/Interfaces
/Users/username/Library/Application Support/Blizzard/System Survey
/Users/username/Library/Application Support/Blizzard/System Survey/Errors
/Users/username/Library/Application Support/Blizzard/System Survey/ProductData
/Users/username/Library/Application Support/Blizzard/System Survey/ProductData/D3
/Users/username/Library/Application Support/Blizzard/System Survey/ProductData/D3/Game
/Users/username/Library/Application Support/Blizzard/System Survey/ProductData/Hero
/Users/username/Library/Application Support/Blizzard/System Survey/ProductData/Hero/Game
Kriskras99 commented 7 years ago

The only thing I can think of is that OS X is based on Unix, and on Unix (or at least Linux) it is not common to use AppAuthor in your directory structure.

I have opened pull request #81 to implement AppAuthor on OS X.

rafaelcgo commented 7 years ago

@Kriskras99 thanks for the PR! Let's see if it gets merged.

Kriskras99 commented 7 years ago

In the meantime you could use the stable branch of my fork, it should be the default branch now.