]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_ruby/Maasha/lib/biopieces.rb
added trim_seq
[biopieces.git] / code_ruby / Maasha / lib / biopieces.rb
index 1dfb9fb2abe4f5fce5ceb1a5dc1511fe67de5272..47b411d05be48100d4ef9b4d6e0f4b911f691f58 100644 (file)
@@ -315,7 +315,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, ".rb") + ".wiki"
+    path = ENV["BP_DIR"] + "/bp_usage/" + File.basename(@script_path) + ".wiki"
     raise "No such wiki file: #{path}" unless File.file? path
     path
   end
@@ -507,7 +507,7 @@ class Status
   def log(exit_status)
     time1   = Time.new.strftime("%Y-%m-%d %X")
     user    = ENV["USER"]
-    script  = File.basename($0, ".rb")
+    script  = File.basename($0)
 
     stream = File.open(path)
     time0, args, tmp_dir = stream.first.split(";")
@@ -530,7 +530,7 @@ class Status
   # Path to status file
   def path
     user   = ENV["USER"]
-    script = File.basename($0, ".rb")
+    script = File.basename($0)
     pid    = $$
     path   = ENV["BP_TMP"] + "/" + [user, script, pid, "status"].join(".")
   end