Skip to content

Instantly share code, notes, and snippets.

@morganp
Created December 26, 2010 19:16
Show Gist options
  • Save morganp/755577 to your computer and use it in GitHub Desktop.
Save morganp/755577 to your computer and use it in GitHub Desktop.
Ruby, set working directory to that of the current file
Dir.chdir( File.dirname( File.expand_path(__FILE__) ) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment