 from pledger . transaction import Transaction 
 from pledger . ledger_processor import LedgerProcessor 
 from pledger . transaction import Transaction <EOL> from pledger . ledger_processor import LedgerProcessor <EOL> import itertools <EOL> import os . path <EOL> class Ledger ( object ) : <EOL> def __init__ ( self , filename , transactions , parser ) : <EOL> self . filename = filename <EOL> self . transactions = transactions <EOL> self . parser = parser <EOL> def absolute_filename ( self , filename ) : <EOL> if os . path . isabs ( filename ) : return filename <EOL> dir = os . path . dirname ( self . filename ) <EOL> return os . path . join ( dir , filename ) </s>
