diff --git a/lib/ledger.rb b/lib/ledger.rb index 28982ba0..beef7b3d 100644 --- a/lib/ledger.rb +++ b/lib/ledger.rb @@ -5,7 +5,7 @@ module Ledger module_function @binary = 'ledger' - @file = '~/org/comptes.ledger' + @file = ENV[ 'LEDGER_FILE' ] def run( options, command = '', command_parameters = '' ) `#{@binary} -f #{@file} #{options} #{command} #{command_parameters}`