Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • But the question remains: if selecting /usr/local/, and the application consist of e.g. five Python files (not runnable as separate applications), do you put them in a subdirectory /usr/local/bin/myapp? Then it won't be found by searching PATH Commented Oct 12, 2023 at 12:50
  • @Gauthier If the files are not runnable as separate applications, then they should not be on $PATH. Commented Oct 12, 2023 at 14:09
  • Right, so if I want an application to be runnable, in PATH, but it consist of multiple files, say Python. What would best practices dictate? Commented Oct 13, 2023 at 11:13
  • @Gauthier Things that the user can execute directly go into /usr/local/bin. Auxiliary files that the user doesn't access go under /usr/local/lib or /usr/local/share. Python modules that can be used by other applications go under /usr/local/lib/pythonN.N where N.N is the python version. Commented Oct 13, 2023 at 13:11