Library/Formula/pssh.rb
def wrap bin_file, pythonpath
    bin_file = Pathname.new bin_file
    libexec_bin = Pathname.new libexec/'bin'
    libexec_bin.mkpath
    mv bin_file, libexec_bin
    bin_file.write <<-EOS.undent
    #!/bin/sh
    PYTHONPATH="#{pythonpath}:$PYTHONPATH" exec "#{libexec_bin}/#{bin_file.basename}" "$@"
    EOS
  end
# TODO: Move this into Library/Homebrew somewhere (see also mitmproxy.rb and ansible.rb).
Move this into Library/Homebrew somewhere .
Move this into Library / Homebrew somewhere .
def wrap bin_file, pythonpath
    bin_file = Pathname.new bin_file
    libexec_bin = Pathname.new libexec/'bin'
    libexec_bin.mkpath
    mv bin_file, libexec_bin
    bin_file.write <<-EOS.undent
    #!/bin/sh
    PYTHONPATH="#{pythonpath}:$PYTHONPATH" exec "#{libexec_bin}/#{bin_file.basename}" "$@"
    EOS
  end
def wrap bin_file , pythonpath bin_file = Pathname . new bin_file libexec_bin = Pathname . new libexec / 'bin' libexec_bin . mkpath mv bin_file , libexec_bin bin_file . write <<-EOS . undent 
    #!/bin/sh
    PYTHONPATH=" #{ pythonpath } :$PYTHONPATH" exec " #{ libexec_bin } / #{ bin_file . basename } " "$@"
     EOS end
TODO: Move this into Library/Homebrew somewhere (see also mitmproxy.rb and ansible.rb).
TODO : Move this into Library / Homebrew somewhere ( see also mitmproxy . rb and ansible . rb ) .
bin_file
pythonpath