diff options
author | John Wiegley <johnw@newartisans.com> | 2013-01-29 09:33:38 -0800 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2013-01-29 09:33:38 -0800 |
commit | a5adcaad3e38efdad19aa14fa2bb73044936c8f9 (patch) | |
tree | be89280824d5363f4c9080d55d25487c8f80c243 /src/global.h | |
parent | 0385ef35b1d6b2af36ccc093264ca8122cc3ae98 (diff) | |
parent | aba5c1aa465c6ad92839fc9259a6a21d2292192e (diff) | |
download | ledger-a5adcaad3e38efdad19aa14fa2bb73044936c8f9.tar.gz ledger-a5adcaad3e38efdad19aa14fa2bb73044936c8f9.tar.bz2 ledger-a5adcaad3e38efdad19aa14fa2bb73044936c8f9.zip |
Merge pull request #133 from enderw88/Bug705-862-init-file-and-pricedb
Fixes bugs 705 and 862.
Diffstat (limited to 'src/global.h')
-rw-r--r-- | src/global.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/global.h b/src/global.h index dc6abd78..11459529 100644 --- a/src/global.h +++ b/src/global.h @@ -67,6 +67,7 @@ public: return _("global scope"); } + void parse_init(path init_file); void read_init(); void read_environment_settings(char * envp[]); strings_list read_command_arguments(scope_t& scope, strings_list args); @@ -156,11 +157,6 @@ See LICENSE file included with the distribution for details and disclaimer."); if (!_init_file.empty()) // _init_file is filled during handle_debug_options on(none, _init_file); - else - if (const char * home_var = std::getenv("HOME")) - on(none, (path(home_var) / ".ledgerrc").string()); - else - on(none, path("./.ledgerrc").string()); }); OPTION(global_scope_t, options); |