PageRenderTime 49ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/run.rbw

https://bitbucket.org/jjhop/mycash
Ruby | 40 lines | 9 code | 10 blank | 21 comment | 2 complexity | d80e1e019ae2bc98e24ddc62df7ad4cc MD5 | raw file
  1. #!/usr/bin/env ruby
  2. #
  3. # This program is free software: you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation, version 3 of the License.
  6. #
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. #
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. #
  15. # Copyright: (C) 2004-2010 Rafal Kotusiewicz aka 'jjhop'. All rights reserved.
  16. #
  17. # http://bitbucket.org/jjhop/mycash/overview/
  18. # http://bitbucket.org/jjhop/mycash/wiki/Home
  19. #
  20. require File.join(File.dirname(__FILE__), 'my_cash')
  21. require File.join(File.dirname(__FILE__), 'sysutils/sysutils')
  22. include SysUtils
  23. if __FILE__ == $0
  24. user_home = home_path_as_iso88592_string
  25. default_database_dir = File.join(user_home, '.mycash', 'db')
  26. default_config_file = File.join(user_home, '.mycash', 'config.cfg')
  27. # powyzsze katalogi przekazywac do MyCashApp.new(...)
  28. # jesli katalogow nie ma to trzeba je utworzyc
  29. MyCashApp.new(default_database_dir, default_config_file).run
  30. end