Skip to content

Commit

Permalink
Add the full path of the sublime package to the python path.
Browse files Browse the repository at this point in the history
Fix #1.
  • Loading branch information
erbridge committed Apr 28, 2015
1 parent 6715bf2 commit 7b9ab0d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/sublime/sublime_manual.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/limetext/lime-backend/lib/watch"
"os"
"path"
"path/filepath"
"time"
)

Expand Down Expand Up @@ -152,7 +153,11 @@ func init() {
}
py.AddToPath(backend.LIME_PACKAGES_PATH)
py.AddToPath(backend.LIME_USER_PACKAGES_PATH)
py.AddToPath(path.Join("..", "..", "lib", "sublime"))

gopaths := filepath.SplitList(os.ExpandEnv("$GOPATH"))
for _, gopath := range gopaths {
py.AddToPath(path.Join(gopath, "src", "github.com", "limetext", "lime-backend", "lib", "sublime"))
}
}

// Wrapper for packages.Plugin and py.Module
Expand Down

0 comments on commit 7b9ab0d

Please sign in to comment.