on master help sign in
Fix elisp prybar asset dir lookup when bundled with Nix
commit83fcd698e349332220bcec81be0dc0de941b96f4 authorConnor Brewster <cbrewster@hey.com> dateWed 17 Nov 2021, 00:19 (5 years ago) parent7d0ec69
1 file changed+6−1
languages/elisp/main.go+6−1
languages/elisp/main.go+6−1
@@ -25,7 +25,12 @@ func Execute(config *utils.Config) {
2525 }
2626
2727 runDir := filepath.Dir(execPath)
28− replPath := filepath.Join(runDir, "prybar_assets", "elisp", "repl.el")
28+
29+ prybarAssetDir := os.Getenv("PRYBAR_ASSETS_DIR")
30+ if prybarAssetDir == "" {
31+ prybarAssetDir = filepath.Join(runDir, "prybar_assets")
32+ }
33+ replPath := filepath.Join(prybarAssetDir, "elisp", "repl.el")
2934
3035 args = append(
3136 args, "emacs", "-nw", "-Q", "--load", replPath,