1Panel/backend/constant/dir.go
2023-04-06 10:38:14 +08:00

15 lines
330 B
Go

package constant
import (
"path"
"github.com/1Panel-dev/1Panel/backend/global"
)
var (
DataDir = global.CONF.System.DataDir
ResourceDir = path.Join(DataDir, "resource")
AppResourceDir = path.Join(ResourceDir, "apps")
AppInstallDir = path.Join(DataDir, "apps")
RuntimeDir = path.Join(DataDir, "runtime")
)