init.go 457 B

12345678910111213141516171819
  1. package main
  2. import (
  3. "github.com/langgenius/dify-sandbox/internal/core/runner/python"
  4. "github.com/langgenius/dify-sandbox/internal/static"
  5. "github.com/langgenius/dify-sandbox/internal/utils/log"
  6. )
  7. func main() {
  8. static.InitConfig("conf/config.yaml")
  9. err := python.PreparePythonDependenciesEnv()
  10. if err != nil {
  11. log.Panic("failed to initialize python dependencies sandbox: %v", err)
  12. }
  13. log.Info("Python dependencies initialized successfully")
  14. }