From: martinahansen Date: Wed, 18 May 2011 15:50:33 +0000 (+0000) Subject: fixed a path in biopieces.rb X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4c188b03c1b0cf760f2f49bd847e5bd21aee27d7;p=biopieces.git fixed a path in biopieces.rb git-svn-id: http://biopieces.googlecode.com/svn/trunk@1410 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/code_ruby/lib/maasha/biopieces.rb b/code_ruby/lib/maasha/biopieces.rb index 8ee2423..abdf607 100644 --- a/code_ruby/lib/maasha/biopieces.rb +++ b/code_ruby/lib/maasha/biopieces.rb @@ -326,7 +326,7 @@ class OptionHandler # Given the script name determine the path of the wiki file with the usage info. def wiki_path - path = ENV["BP_DIR"] + "/bp_usage/" + File.basename(@script_path) + ".wiki" + path = File.join(ENV["BP_DIR"], "bp_usage", File.basename(@script_path)) + ".wiki" raise "No such wiki file: #{path}" unless File.file? path path end