]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_ruby/lib/maasha/biopieces.rb
adding bzip2 support in ruby
[biopieces.git] / code_ruby / lib / maasha / biopieces.rb
index 1797d9211ed4e16ddcc1101b86d1170437ae314f..039bb69ea26d299e3230b2266a0abe345374c7e9 100644 (file)
@@ -31,6 +31,8 @@ require 'pp'
 require 'stringio'
 require 'zlib'
 
+BEGIN { Dir.mkdir ENV["BP_TMP"] unless File.directory? ENV["BP_TMP"] }
+
 TEST = false
 
 # Monkey patch (evil) changing the to_s method of the Hash class to
@@ -82,7 +84,7 @@ class Biopieces
     io_in  = self.open_input(input)
     io_out = self.open_output(output)
 
-    if block_given?
+    if block_given?   # FIXME begin block outmost?
       begin
         yield io_in, io_out
       ensure