lib/SimControl/environments/python.rb in SimControl-0.1.4 vs lib/SimControl/environments/python.rb in SimControl-0.1.5

- old
+ new

@@ -11,24 +11,20 @@ def script @script end - def args(scenario) - scenario.args - end - def execute(scenario) stdin, stout, stderr, thread = Open3.popen3 command(scenario), chdir: basedir thread.join end def basedir File.dirname @script end def command(scenario) - [interpreter, script, args(scenario)].reject(&:nil?).reject(&:empty?).join " " + [interpreter, script, scenario].reject(&:nil?).reject(&:empty?).join " " end def interpreter if @virtualenv File.join(@virtualenv, "bin", @interpreter)