📝 Add documentation for atom.project.getEnv

This commit is contained in:
Lee Dohm
2016-03-03 21:21:26 -08:00
committed by Joe Fitzgerald
parent 3201d7f746
commit a46740522d

View File

@@ -278,6 +278,12 @@ class Project extends Model
Section: Environment
###
# Public: Retrieves a normalized copy of the environment.
#
# On OS X, the `PATH` can be different depending on whether Atom is launched
# from the Dock, Spotlight or the terminal. This detects how Atom was started
# and corrects the `PATH` environment variable before returning a copy of the
# environment.
getEnv: ->
unless @env?
@env = _.clone(process.env)