diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-01 23:40:02 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-01 23:40:02 -0600 |
commit | a125f24d29fd8275be7283a2edca9abc125703d7 (patch) | |
tree | b649aeeef3b75be85cae8197467c5fb02066d486 /src/textual.cc | |
parent | cfd7ffb12645c198a5b15891654f6ad6a0e4db27 (diff) | |
download | fork-ledger-a125f24d29fd8275be7283a2edca9abc125703d7.tar.gz fork-ledger-a125f24d29fd8275be7283a2edca9abc125703d7.tar.bz2 fork-ledger-a125f24d29fd8275be7283a2edca9abc125703d7.zip |
Allow --options to be added by the user in Python
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/textual.cc b/src/textual.cc index 2ec58898..a4e03435 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -508,8 +508,9 @@ void instance_t::option_directive(char * line) *p++ = '\0'; } - if (! process_option(context.pathname.string(), line + 2, - *context.scope, p, line)) + path abs_path(filesystem::absolute(context.pathname, + context.current_directory)); + if (! process_option(abs_path.string(), line + 2, *context.scope, p, line)) throw_(option_error, _("Illegal option --%1") << line + 2); } |