[BioRuby-cvs] bioruby/lib/bio/shell interface.rb,1.18,1.19

Katayama Toshiaki k at dev.open-bio.org
Thu Nov 15 07:08:51 UTC 2007


Update of /home/repository/bioruby/bioruby/lib/bio/shell
In directory dev.open-bio.org:/tmp/cvs-serv6723/shell

Modified Files:
	interface.rb 
Log Message:
* fixed that savefile("hoge", obj) created "datahoge" file instead of "data/hoge"


Index: interface.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/interface.rb,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** interface.rb	26 Jun 2007 08:38:38 -0000	1.18
--- interface.rb	15 Nov 2007 07:08:49 -0000	1.19
***************
*** 153,157 ****
      message = "Save file '#{file}' in '#{datadir}' directory? [y/n] "
      if ! file[/^#{datadir}/] and Bio::Shell.ask_yes_or_no(message)
!       file = datadir + file
      end
      if File.exists?(file)
--- 153,157 ----
      message = "Save file '#{file}' in '#{datadir}' directory? [y/n] "
      if ! file[/^#{datadir}/] and Bio::Shell.ask_yes_or_no(message)
!       file = File.join(datadir, file)
      end
      if File.exists?(file)




More information about the bioruby-cvs mailing list