1Panel/backend/constant/dir.go

15 lines
282 B
Go
Raw Normal View History

2022-10-12 10:57:22 +00:00
package constant
import (
"path"
"github.com/1Panel-dev/1Panel/backend/global"
2022-10-12 10:57:22 +00:00
)
var (
DataDir = global.CONF.System.DataDir
ResourceDir = path.Join(DataDir, "resource")
2022-10-12 10:57:22 +00:00
AppResourceDir = path.Join(ResourceDir, "apps")
AppInstallDir = path.Join(DataDir, "apps")
)