-
-
Notifications
You must be signed in to change notification settings - Fork 81
Add site_bin_dir counterpart for user_bin_dir #434
Copy link
Copy link
Closed
Description
The user_bin_dir method currently lacks a site_bin_dir counterpart.
Some suggestions:
- Unix:
/usr/bin?- Or a
/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. - Or maybe even use
$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.
- Android:
user_bin_diralias? As with any othersite_*_dircounterpart… - Windows:
%PROGRAMFILES%\$appauthor\$appname?- Or
site_data_dirwith an opinionatedBinsubdirectory? 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/binon 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels