Re: [MacRuby-devel] environment variables

2012-10-17 Thread Erik Lundqvist
OK thanks for explaining it Mark. I'm afraid setting the variable again in Xcode is not an option. I was hoping to pick up $CATALINA_HOME to find out where a user had installed tomcat. On 17 Oct 2012, at 21:51, Mark Rada wrote: > Ok, so it looks like you are setting the environment variable

Re: [MacRuby-devel] environment variables

2012-10-17 Thread Mark Rada
Ok, so it looks like you are setting the environment variable from the Terminal.app, and then running the app from Xcode or launching from Finder. If that's the case, then what you export from the Terminal would not be available to apps. Exported variables will only be available to descendant p

Re: [MacRuby-devel] environment variables

2012-10-17 Thread Erik Lundqvist
Hi Mark, It's a MacRuby 0.12 app. Thank you On 17 Oct 2012, at 20:56, Mark Rada wrote: > Hi Erik, > > Are you trying to access the environment variables from inside an app or just > another script? > Can you also tell me what version of MacRuby you are using? > > Thanks, > Mark > >

Re: [MacRuby-devel] environment variables

2012-10-17 Thread Mark Rada
Hi Erik, Are you trying to access the environment variables from inside an app or just another script? Can you also tell me what version of MacRuby you are using? Thanks, Mark On 2012-10-17, at 11:39 AM, Erik Lundqvist wrote: > Dear all, > > Started playing with MacRuby again and I

[MacRuby-devel] environment variables

2012-10-17 Thread Erik Lundqvist
Dear all, Started playing with MacRuby again and I need to access the environment variables. Say I have a export VARIABLE_NAME = Whatever I have tried both: ENV['VARIABLE_NAME'] and NSProcessInfo.processInfo.environment.objectForKey('VARIABLE_NAME') Neither of which returns anything Both work