- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 283
Description
I've received the same question a few times now about the proper way to set up a Julia installation such that it includes an extra entry on the DEPOT_PATH for the purposes of a "shared depot", e.g. lab-provided packages, global preference defaults, etc....
I know there are a few options for setting this up, (JULIA_DEPOT_PATH in the environment, pushing onto DEPOT_PATH in startup.jl, etc...) but most of the users who have asked are doing something like running a computer lab, and they don't want each user to have to modify their own startup.jl, or modify their .bash_profile to pick these things up.  It would be nice if there were some way we could modify something in the Julia distribution itself that caused the DEPOT_PATH to be altered at startup.
Right now, I'm thinking the best way to do this is to modify the Julia installation to have the following put into etc/julia/startup.jl:
push!(Base.DEPOT_PATH, "/path/to/shared/environment")
Note that this will not work if the user starts up Julia with --startup-file=no, but I consider that a feature, not a bug.  Is this the best thing we should suggest that folks do in this case, or is there a better idea?