Skip to content

Commit

Permalink
PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkBrand committed Jan 31, 2014
1 parent 2bb07df commit b3a7e8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions CodeFormatter.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
// Set the specific environment variables here (Comma separated list of paths)
// e.g GOPATH": ["/usr/go/gocode/src/example/", "/usr/tmp/gosrc/src/"]
// or GOPATH": ["C:/go/gocode/src/example/", "/usr/tmp/gosrc/src/"]
"GOPATH": ["/home/non-descript-intern/GoWorkspace/"],
"GOPATH": ["/home/non-descript-intern/GoWorkspace/","/home/non-descript-intern/.config/sublime-text-2/Packages/ProtoBufCodeFormatter/"],

// Set the path to where the go binary is installed (Comma separated list of paths)
// All paths are checked, a Error will be displayed if the binary is not found
// e.g "GOBIN": ["/usr/go/bin/"]
// or "GOBIN": ["C:/Go/bin/"]
"GOBIN": [ "/usr/local/go/bin", "/usr/local/opt/go/bin,", "/usr/local/bin", "/usr/bin"],
"GOBIN": ["C:/GoWorkspace/bin", "~/bin", "~/GoWorkspace/bin", "/usr/local/go/bin", "/usr/local/opt/go/bin,", "/usr/local/bin", "/usr/bin"],

// Set path to where protocol buffer files may reside (Comma seperated list of paths)
"PROTOPATH": [],
"PROTOPATH": ["/home/non-descript-intern/GoWorkspace/src/github.com/DirkBrand/protobuf-code-formatter/protoc-gen-pretty/"],

// Location of protoc binary
"PROTOBIN": ["/usr/local/bin/protoc"]
"PATH": ["/usr/local/bin/"]

}
8 changes: 4 additions & 4 deletions ProtoBufCodeFormatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def getenv(self):
vars = [
'GOPATH',
'GOROOT',
'PROTOBIN',
'PATH',
]

cmdl = []
Expand Down Expand Up @@ -153,9 +153,9 @@ def getenv(self):
else:
print "CodeFormatter: PROTOPATH could not be set!"

if s.get('PROTOBIN'):
_env['PROTOBIN'] = os.pathsep.join(s.get('PROTOBIN'))
if s.get('PATH'):
_env['PATH'] = os.pathsep.join(s.get('PATH'))
else:
print "PROTOBIN could not be set"
print "PATH could not be set"

self._env = _env

0 comments on commit b3a7e8c

Please sign in to comment.