16 lines
282 B
Go
16 lines
282 B
Go
|
|
package script
|
||
|
|
|
||
|
|
import "os"
|
||
|
|
|
||
|
|
func GetServerLedgerConfigFilePath() string {
|
||
|
|
return GetServerConfig().DataPath + "/ledger_config.json"
|
||
|
|
}
|
||
|
|
|
||
|
|
func GetExampleLedgerConfigDirPath() string {
|
||
|
|
currentPath, err := os.Getwd()
|
||
|
|
if err != nil {
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
return currentPath + "/example"
|
||
|
|
}
|