You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user_bin_dir method currently lacks a site_bin_dir counterpart.
Some suggestions:
Unix:
/usr/bin?
Or a /usr/local/bin:/usr/bin multipath? However, it was chosen not to use a multipath for site_log_dir (Add site_state_dir() counterpart for user_state_dir() #214), so platformdirs could choose to only support /usr/bin for consistency.
Or maybe even use $PATH for a multipath? However, the same inconsistency issue applies, additionally platformdirs would need to filter $PATH to exclude e.g. $HOME/.local/bin… Thus I don't think that this is really feasible.
Android: user_bin_dir alias? As with any other site_*_dir counterpart…
Windows:
%PROGRAMFILES%\$appauthor\$appname?
Or site_data_dir with an opinionated Bin subdirectory? But I'd say that this would be rather unexpected…
Or C:\Windows\System32? It's the only path that is in %PATH% by default, but that would be kinda crazy IMHO…
Mac OS: /usr/local/bin? AFAIK one can't use /usr/bin on OS X, but I don't have a Mac…
Note that user_bin_dir currently doesn't accept $appauthor, $appname, $version.
If implemented, user_bin_dir should support the use_site_for_root option and redirect calls to site_bin_dir if enabled.
The
user_bin_dirmethod currently lacks asite_bin_dircounterpart.Some suggestions:
/usr/bin?/usr/local/bin:/usr/binmultipath? However, it was chosen not to use a multipath forsite_log_dir(Addsite_state_dir()counterpart foruser_state_dir()#214), soplatformdirscould choose to only support/usr/binfor consistency.$PATHfor a multipath? However, the same inconsistency issue applies, additionallyplatformdirswould need to filter$PATHto exclude e.g.$HOME/.local/bin… Thus I don't think that this is really feasible.user_bin_diralias? As with any othersite_*_dircounterpart…%PROGRAMFILES%\$appauthor\$appname?site_data_dirwith an opinionatedBinsubdirectory? But I'd say that this would be rather unexpected…C:\Windows\System32? It's the only path that is in%PATH%by default, but that would be kinda crazy IMHO…/usr/local/bin? AFAIK one can't use/usr/binon OS X, but I don't have a Mac…Note that
user_bin_dircurrently doesn't accept$appauthor,$appname,$version.If implemented,
user_bin_dirshould support theuse_site_for_rootoption and redirect calls tosite_bin_dirif enabled.