Created
June 11, 2016 11:18
-
-
Save bruceLee-kungFu/af478c065481e51c8f5760f570f1d73b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
command = "pwd" | |
$pwd = %x[#{command}] | |
puts $pwd | |
if ($pwd =~ /^(\/.*)\/.*?\/.*?$/) # get rid of the trailing two directories | |
$path_to_loading_file = $1 + "/lib_crawler/lib_crawler.rb" | |
end | |
load $path_to_loading_file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment