#!/usr/bin/env ruby bin_dir = File.expand_path(File.dirname(__FILE__)) shell_script_path = File.join(bin_dir, File.basename($PROGRAM_NAME, '.rb') + '.py') exec shell_script_path, *ARGV