[BioRuby-cvs] bioruby/lib/bio/shell setup.rb,1.3,1.4

Katayama Toshiaki k at dev.open-bio.org
Wed Jun 20 17:26:58 UTC 2007


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

Modified Files:
	setup.rb 
Log Message:
* user interface improvement: if no directory is specified with the bioruby
  command, use ~/.bioruby directory as the default save directory instead
  of the current directory, as suggested by Dr. Jun Sese


Index: setup.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/setup.rb,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** setup.rb	5 Apr 2007 23:35:41 -0000	1.3
--- setup.rb	20 Jun 2007 17:26:56 -0000	1.4
***************
*** 97,100 ****
--- 97,101 ----
  
    def current_workdir
+ =begin
      unless File.exists?(Bio::Shell.datadir)
        message = "Are you sure to start new session in this directory? [y/n] "
***************
*** 103,107 ****
        end
      end
!     return '.'
    end
  
--- 104,111 ----
        end
      end
! =end
!     savedir = "#{ENV['HOME']}/.bioruby"
!     Dir.mkdir(savedir) unless File.directory?(savedir)
!     return savedir
    end
  




More information about the bioruby-cvs mailing list