juriejan
juriejan

Reputation: 430

Is it possible to set environment variables in a .sublime-project file?

I'd like some environment variables to be set in Sublime Text when I open the project. This is for the most part just for some plugins that require them to be set.

I believe that there is a feature request for this, but I was still wondering if this isn't possible in some way or another.

http://sublimetext.userecho.com/topic/103881-sublime-project-should-also-be-able-to-set-environment-variable/

I'm asking this specifically in relation with the GoSublime plugin, for which I'd like to change the GOPATH between projects.

Upvotes: 5

Views: 4422

Answers (1)

user1336619
user1336619

Reputation:

I see that you linked my request to sublime userecho. Unfortunately nothing really happened over there, so I developed my own plugin to do that.

If you are still interested, please look at this: https://bitbucket.org/daniele-niero/sublimeprojectenvironment

I have also made a pull request to Package Control to make the plugin available with it.

Upvotes: 3

Related Questions