[racket] Environment variables in paths
Can't you write
(build-path (getenv "WORKSPACE") ....)
?
Laurent
On Fri, Sep 28, 2012 at 11:30 PM, Nick Shelley <nickmshelley at gmail.com>wrote:
> 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 first?
>
> 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.
>
> Thanks.
>
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120928/8a5c7959/attachment-0001.html>