lmi-commits
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]