AlexanderAA / ledger_binaries_windows

Ledger (a powerful command-line accounting system) v2.6.1 and v3.1.x binaries for windows systems
https://www.ledger-cli.org
66 stars 10 forks source link

Seems it doesn't support .ledgerrc in home directory. #7

Closed kunedo closed 4 years ago

kunedo commented 5 years ago

Hi,

I create a .ledgerrc file in my home directory C:\Users\user.ledgerrc likes: --file e:\data\ledger.lgr

And when I run > ledger bal, it gives the folowing error: Error: No journal file was specified (please use -f)

e:\data\ledger.lgr file is existence.

ledger version is 3.1.2.

alensiljak commented 5 years ago

If you need a workaround, it seems that it does support the rc file in the current directory.

kunedo commented 5 years ago

If you need a workaround, it seems that it does support the rc file in the current directory.

Thinks, I wrote a bat, like:

@SETLOCAL
@SET PATH=%~dp0;%PATH%
@SET HOME=%~dp0
@START
@ENDLOCAL

and it works.