mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
📝 Add documentation for atom.project.getEnv
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user