From b3a7e8c620fdd0324394b8204a9efacb849a36f1 Mon Sep 17 00:00:00 2001 From: Dirk Brand Date: Fri, 31 Jan 2014 09:22:55 +0200 Subject: [PATCH] PATH --- CodeFormatter.sublime-settings | 8 ++++---- ProtoBufCodeFormatter.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CodeFormatter.sublime-settings b/CodeFormatter.sublime-settings index ba64ecf..9168a02 100644 --- a/CodeFormatter.sublime-settings +++ b/CodeFormatter.sublime-settings @@ -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/"] } diff --git a/ProtoBufCodeFormatter.py b/ProtoBufCodeFormatter.py index 30b04a8..c8129a1 100755 --- a/ProtoBufCodeFormatter.py +++ b/ProtoBufCodeFormatter.py @@ -102,7 +102,7 @@ def getenv(self): vars = [ 'GOPATH', 'GOROOT', - 'PROTOBIN', + 'PATH', ] cmdl = [] @@ -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