24 lines
533 B
Go
24 lines
533 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"
|
|
}
|
|
|
|
func GetLedgerTransactionsTemplateFilePath(dataPath string) string {
|
|
return dataPath + "/.beancount-ns/transaction_template.json"
|
|
}
|
|
|
|
func GetLedgerAccountTypeFilePath(dataPath string) string {
|
|
return dataPath + "/.beancount-ns/account_type.json"
|
|
}
|