Skip to content

cli: use pathsep; require env filenames to be absolute - #1712

Merged
yagebu merged 2 commits into
beancount:mainfrom
yagebu:relative-path-beancount-file
Nov 11, 2023
Merged

yagebu merged 2 commits into
beancount:mainfrom
yagebu:relative-path-beancount-file

Conversation

@yagebu

@yagebu yagebu commented Nov 11, 2023

Copy link
Copy Markdown
Member
  • use os.pathsep to split the filenames passed in BEANCOUNT_FILE to
    allow for spaces in paths there (and use this more established
    delimiter)
  • filenames in that env variable were already implicitly required to be
    absolute (throwing an error on loading the file with Beancount).
    So check for this early and provide a better error message.

- use os.pathsep to split the filenames passed in BEANCOUNT_FILE to
  allow for spaces in paths there (and use this more established
  delimiter)
- filenames in that env variable were already implicitly required to be
  absolute (throwing an error on loading the file with Beancount).
  So check for this early and provide a better error message.
@yagebu
yagebu merged commit 05091f1 into beancount:main Nov 11, 2023
@yagebu
yagebu deleted the relative-path-beancount-file branch November 11, 2023 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant