Argh. Hit send without rereading my example more carefully. I misplaced a paren in my final example. It should have been:
(.SetFilePrefix (str (get (System/getenv) "VTK_DATA_ROOT") "/Data/headsq/quarter")) Andy On Sat, Dec 17, 2011 at 5:01 PM, Andy Fingerhut <[email protected]>wrote: > Here is a one-line transcript in a REPL showing an example of getting the > value of the environment variable PATH: > > user=> (get (System/getenv) "PATH") > > "/Users/jafinger/bin:/Users/jafinger/Documents/bin:/usr/local/bin:/opt/local/sbin:/opt/local/bin:/sbin:/usr/sbin:/Users/jafinger/bin/atp:/Users/jafinger/bin/Darwin-i386:/Users/jafinger/bin/Darwin:/usr/bin:/bin:/opt/X11/bin:/usr/X11/bin:/opt/X11/bin" > > > (get (System/getenv) "VTK_DATA_ROOT") should do it for you, like so, using > str to append the two strings together: > > (.SetFilePrefix (str (get (System/getenv) "VTK_DATA_ROOT" > "/Data/headsq/quarter"))) > > Andy > > > On Sat, Dec 17, 2011 at 4:33 PM, Antonio Recio <[email protected]> wrote: > >> Using the environment variable: export >> VTK_DATA_ROOT=/opt/apps/VTK/VTKData/ >> >> I would like to change this: >> (.SetFilePrefix "/opt/apps/VTK/VTKData/Data/headsq/quarter") >> >> To something like this >> (.SetFilePrefix "$VTK_DATA_ROOT/Data/headsq/quarter") >> >> How I can write linux PATH in clojure? >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to [email protected] >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en > > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
