You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314
  1. package rex
  2. import (
  3. "path"
  4. "github.com/goanywhere/env"
  5. "github.com/goanywhere/fs"
  6. )
  7. func init() {
  8. var basedir = fs.Getcd(2)
  9. env.Set("basedir", basedir)
  10. env.Load(path.Join(basedir, ".env"))
  11. }