Can't you write <br>(build-path (getenv "WORKSPACE") ....)<br>?<br><br>Laurent<br><br><div class="gmail_quote">On Fri, Sep 28, 2012 at 11:30 PM, Nick Shelley <span dir="ltr"><<a href="mailto:nickmshelley@gmail.com" target="_blank">nickmshelley@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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?<div>
<br></div><div>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.</div>
<div><br></div><div>Thanks.</div>
<br>____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br></blockquote></div><br>