Skip to content

Instantly share code, notes, and snippets.

@tatey
Created October 15, 2013 23:55
Show Gist options
  • Save tatey/7000507 to your computer and use it in GitHub Desktop.
Save tatey/7000507 to your computer and use it in GitHub Desktop.
I am writing a shell script and I want to reference a config file that's relative to the executing script.
File.expand_path('../../../path/to/config/from/this/file', __FILE__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment