[racket] Environment variables in paths

From: Nick Shelley (nickmshelley at gmail.com)
Date: Fri Sep 28 17:30:20 EDT 2012

I can't seem to find a path function that deals with environment variables.
Is there some variant of cleanse-path that resolves environment variables

Concretely, I have an environment variable $WORKSPACE that tells where I'm
operating from. The result of (getenv "WORKSPACE") is the correct absolute
path, but (build-path "$WORKSPACE" ...) doesn't resolve the variable, so my
filesystem commands are failing.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120928/26a511d1/attachment.html>

Posted on the users mailing list.