Created
December 2, 2014 14:25
Revisions
-
brosner created this gist
Dec 2, 2014 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ fs = require("fs") path = require("path") fs.readFile path.join(atom.project.getPath(), ".atom-env"), "utf8", (err, data) -> if data? for line in data.split "\n" if line != "" pair = line.split "=" key = pair[0] value = pair[1] if value.indexOf "." == 0 value = path.normalize (path.join atom.project.getPath(), value) process.env[key] = value