Hello, everyone!
Inspired by this question, what's the Ruby way to do this?
File.dirname(__FILE__)
will give you the path relative to the script being run.
File.expand_path(File.dirname(__FILE__))
will give you the absolute path.
ENV["PWD"] seems the simplest way for me under Linux. I don't know of an OS-agnostic way.