github.com/KusionStack/kpm@v0.8.4-0.20240326033734-dc72298a30e5/pkg/api/kpm_env.go (about)

     1  package api
     2  
     3  import (
     4  	"kcl-lang.io/kpm/pkg/env"
     5  )
     6  
     7  // GetKclPkgPath will return the value of $KCL_PKG_PATH.
     8  //
     9  // If $KCL_PKG_PATH does not exist, it will return '$HOME/.kcl/kpm' by default.
    10  func GetKclPkgPath() (string, error) {
    11  	return env.GetAbsPkgPath()
    12  }