I\'m running Ruby on Windows though I don\'t know if that should make a difference. All I want to do is get the current working directory\'s absolute path. Is this possible fr
File.expand_path File.dirname(__FILE__) will return the directory relative to the file this command is called from.
File.expand_path File.dirname(__FILE__)
But Dir.pwd returns the working directory (results identical to executing pwd in your terminal)
Dir.pwd
pwd