[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master c85b44f 6/7: Force print directory more sensi
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master c85b44f 6/7: Force print directory more sensibly |
Date: |
Wed, 7 Oct 2020 19:36:14 -0400 (EDT) |
branch: master
commit c85b44ffe027f34a69432787dc82d57c1282585c
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Force print directory more sensibly
Cf. commit 090d19a80e6a of 20160615T2310Z. If the print directory is
to be forced, force it to the data directory instead of the current
directory. If a data directory was specified with '--data_path=', then
that's a better choice. Otherwise, the data directory defaults to the
current directory, and the former behavior obtains.
---
configurable_settings.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configurable_settings.cpp b/configurable_settings.cpp
index f01a3be..8316b05 100644
--- a/configurable_settings.cpp
+++ b/configurable_settings.cpp
@@ -156,9 +156,9 @@ configurable_settings::configurable_settings()
catch(...)
{
report_exception();
- print_directory_ = fs::system_complete(".").string();
+ print_directory_ = fs::system_complete(AddDataDir(".")).string();
warning()
- << "If possible, current directory '"
+ << "If possible, data directory '"
<< print_directory_
<< "' will be used for print files instead."
<< LMI_FLUSH
- [lmi-commits] [lmi] master updated (61f5559 -> 14d582d), Greg Chicares, 2020/10/07
- [lmi-commits] [lmi] master ff1dd28 1/7: Improve measurement of compound-interest performance, Greg Chicares, 2020/10/07
- [lmi-commits] [lmi] master 7846a21 2/7: Fix defect introduced 20201004T1606Z: typo in variable name, Greg Chicares, 2020/10/07
- [lmi-commits] [lmi] master b8061ca 3/7: Treat gcc versions "10" and "10.0" as the same, Greg Chicares, 2020/10/07
- [lmi-commits] [lmi] master 9a6cab4 4/7: Treat gcc versions "[89]" and "[89]\.*" as the same, Greg Chicares, 2020/10/07
- [lmi-commits] [lmi] master 81e3462 5/7: Specify a default data directory for CGI, Greg Chicares, 2020/10/07
- [lmi-commits] [lmi] master 14d582d 7/7: Trap exceptions from filesystem library, Greg Chicares, 2020/10/07
- [lmi-commits] [lmi] master c85b44f 6/7: Force print directory more sensibly,
Greg Chicares <=