Skip to content

Commit

Permalink
Reads from /Users/brian/Documents/Source/Ledger/Ledger.dat, if presen…
Browse files Browse the repository at this point in the history
…t, vs .qlrc -- fixes #30
  • Loading branch information
Brian Carter committed Aug 7, 2016
1 parent 582e73e commit b1cf4e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2,7 +2,7 @@
## Entry creation utility for [ledger](http://ledger-cli.org/ "ledger").

### Install
1. Download [the archive](https://github.com/robotmachine/QuickLedger/archive/v1.0.0.tar.gz)
1. Download [the archive](https://github.com/robotmachine/QuickLedger/archive/v1.0.1.tar.gz)
2. Run `chmod +x ql`
3. Move `ql` to `/usr/local/bin/` or somewhere else in `$PATH`

Expand Down
6 changes: 4 additions & 2 deletions ql
Expand Up @@ -7,7 +7,7 @@
| |_| | |_| | | (__| <| |__| __/ (_| | (_| | __/ |
\__\_\\__,_|_|\___|_|\_\_____\___|\__,_|\__, |\___|_|
|___/
Version 1.0.0
Version 1.0.1
Project Homepage: https://github.com/robotmachine/QuickLedger
Expand All @@ -33,7 +33,7 @@ from decimal import *
from datetime import date, timedelta

global qlVer
qlVer = str("1.0.0")
qlVer = str("1.0.1")

global config
config = configparser.ConfigParser()
Expand Down Expand Up @@ -117,6 +117,8 @@ def main():
"""
if args.ledger_file and os.path.exists(os.path.expanduser(args.ledger_file)):
ledger_file = os.path.expanduser(args.ledger_file)
elif os.path.exists(os.path.expanduser(os.environ['LEDGER'])):
ledger_file = os.path.expanduser(os.environ['LEDGER'])
else:
ledger_file = read_config('ledger', None, None)
"""
Expand Down

0 comments on commit b1cf4e6

Please sign in to comment.