[MacRuby-devel] environment variables

Erik Lundqvist willcodejavaforfood at gmail.com
Wed Oct 17 12:57:09 PDT 2012


Hi Mark,

It's a MacRuby 0.12 app.

Thank you

On 17 Oct 2012, at 20:56, Mark Rada <mrada at marketcircle.com> 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
> 
> 
> On 2012-10-17, at 11:39 AM, Erik Lundqvist <willcodejavaforfood at gmail.com> wrote:
> 
>> 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 works in macirb
>> 
>> Kind Regards,
>> Erik
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo/macruby-devel
> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macruby-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20121017/5ff9053c/attachment.html>


More information about the MacRuby-devel mailing list