Added environment variable PLTPLANETDIR to control where planet saves stuff

in order to support multiple installations with different planet caches
(as per dherman's request)

svn: r735
This commit is contained in:
Jacob Matthews 2005-09-01 19:20:57 +00:00
parent d232a9f491
commit d5ded0000d
2 changed files with 6 additions and 3 deletions

View File

@ -6,7 +6,9 @@
(PLANET-SERVER-NAME "planet.plt-scheme.org")
(PLANET-SERVER-PORT 270)
(PLANET-CODE-VERSION "300")
(PLANET-DIR (build-path (find-system-path 'addon-dir) "planet" (PLANET-CODE-VERSION)))
(PLANET-DIR (if (getenv "PLTPLANETDIR")
(string->path (getenv "PLTPLANETDIR"))
(build-path (find-system-path 'addon-dir) "planet" (PLANET-CODE-VERSION))))
(CACHE-DIR (build-path (PLANET-DIR) "cache"))
(LINKAGE-FILE (build-path (PLANET-DIR) "LINKAGE"))
(LOGGING-ENABLED? #t)

View File

@ -52,8 +52,9 @@ Parameters:
> (PLANET-DIR) -> directory-string
> (PLANET-DIR directory-string) -> void
The root PLaneT directory. Default is the directory in which config.ss
is found.
The root PLaneT directory. If the environment variable PLTPLANETDIR is
set, default is its value; otherwise the default is the directory in
which config.ss is found.
> (CACHE-DIR) -> directory-string
> (CACHE-DIR directory-string) -> void