@@ -42,7 +42,12 @@ func preloadQuietLib(env []string) []string {
4242 panic(err)
4343 }
4444 runDir := filepath.Dir(execPath)
45− libPath := filepath.Join(runDir, "prybar_assets", "sqlite", "patch.so")
45+
46+ prybarAssetDir := os.Getenv("PRYBAR_ASSETS_DIR")
47+ if prybarAssetDir == "" {
48+ prybarAssetDir = filepath.Join(runDir, "prybar_assets")
49+ }
50+ libPath := filepath.Join(prybarAssetDir, "sqlite", "patch.so")
4651 return append(env, []string{"LD_PRELOAD=" + libPath, "PRYBAR_QUIET=1"}...)
4752}
4853