Skip to content

Commit

Permalink
Refactor root path
Browse files Browse the repository at this point in the history
  • Loading branch information
robertobermudez committed Apr 3, 2024
1 parent 48443aa commit c9e19df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 32 deletions.
31 changes: 0 additions & 31 deletions banshy

This file was deleted.

4 changes: 3 additions & 1 deletion configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
require 'logger'
require 'singleton'


APP_ROOT_PATH = File.expand_path(__dir__).freeze
PATH_FILES = '~/.banshy/'.freeze
PATH_FILES = File.join(ENV['HOME'], '/.banshy/').freeze
PATH_DB_TEST = File.join(APP_ROOT_PATH, 'test', 'datab.db').freeze
RESOURCE_XML = File.join(APP_ROOT_PATH, 'resources', 'gresources.xml').freeze
RESOURCE_BIN = File.join(APP_ROOT_PATH, 'gresource.bin').freeze
$LOAD_PATH.unshift File.expand_path(APP_ROOT_PATH, 'lib/gems').freeze

# Require all ruby files in the application folder recursively
Dir[File.join(APP_ROOT_PATH, 'application/**', '*.rb')].each { |file| require file }
Expand Down

0 comments on commit c9e19df

Please sign in to comment.