hardcode fallback ledger file location

This commit is contained in:
Gwenhael Le Moine 2017-11-24 15:33:40 +01:00
parent b74c36365c
commit a95134c201
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -5,7 +5,7 @@ require "xml"
# Crystal wrapper module for calling ledger
class Ledger
def initialize( binary : String = "ledger", ledger_file : String = ENV[ "LEDGER_FILE" ] )
def initialize( binary : String = "ledger", ledger_file : String = ENV[ "LEDGER_FILE" ] ||= "/home/cycojesus/org/comptes.ledger" )
@binary = binary
@file = ledger_file
end