parameterize zrokdir (#976)

This commit is contained in:
Michael Quigley
2025-06-04 16:41:46 -04:00
parent f7d78a7bd9
commit 5308285cbd
2 changed files with 13 additions and 1 deletions

View File

@@ -7,6 +7,12 @@ import (
"github.com/pkg/errors"
)
// SetRootDirName allows setting a custom name for the root directory.
// This should be called before any other environment operations.
func SetRootDirName(name string) {
env_v0_4.SetRootDirName(name)
}
func LoadRoot() (env_core.Root, error) {
if assert, err := env_v0_4.Assert(); assert && err == nil {
return env_v0_4.Load()