I am currently running a post process script written in Python with the following Ruby Code:
module Python
require "open3"
def self::runScript(script)
Open3.popen3(script) do |stdin, stdout, stderr|
stdout.read.split("\n").each do |line|
puts "[python] stdout: #{line}"
end
stderr.read.split("\n").each do |line|
puts "[python] stderr: #{line}"
end
end
puts 'Script completed.'
end
end
This works fine, but it currently opens a black terminal window which remains open until the post process is complete. How would I go about not showing this window? I would prefer everything to happen silently in the background.
To Clarify I need to be able to run a Python script from Ruby silently. Windows only.