extract path into variable

This commit is contained in:
buddhamagnet 2013-04-21 23:30:16 +01:00
parent 6b3979d93b
commit a85729c5f1
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
#!/usr/bin/env ruby
if File.exists?(File.join(File.expand_path('../../..', __FILE__), '.git'))
git_path = File.join(File.expand_path('../../..', __FILE__), '.git')
if File.exists?(git_path)
railties_path = File.expand_path('../../lib', __FILE__)
$:.unshift(railties_path)
end