[MacRuby-devel] environment variables

Erik Lundqvist willcodejavaforfood at gmail.com
Wed Oct 17 08:39:57 PDT 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20121017/6bcec40d/attachment.html>


More information about the MacRuby-devel mailing list