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