On Sat, 17 Aug 2019 at 14:40, Walter Lee Davis <waltd@wdstudio.com> wrote:
>
> If you shell out to Python, you will have access to anything that Python has access to. I haven't used it in many years, so I don't know what that might be, but it would be the same as running your Python application raw in the native operating system, because that's what you're actually doing.
>
> python your_program.py
>
> vs
>
> #! /usr/bin/env ruby
>
> result = system 'python your_program.py'
>
> There's really no difference from the point of view of the python program.
Except that the environment (PATH USER etc) may well be different of course).
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvA1MWkpNn-kAsxVAz_EAV46VaiSLUw4AWwSswdmOftyg%40mail.gmail.com.
No comments:
Post a Comment