8 #include "support/filetools.h"
9 #include "lyx_gui_misc.h"
15 Path(string const & path)
19 pushedDir_ = GetCWD();
20 if (pushedDir_.empty() || lyx::chdir(path.c_str())) {
21 WriteFSAlert(_("Error: Could not change to directory: "),
37 WriteFSAlert(_("Error: Dir already popped: "),
41 if (lyx::chdir(pushedDir_.c_str())) {
43 _("Error: Could not change to directory: "),
56 // To avoid the wrong usage:
57 // Path("/tmp"); // wrong
58 // Path p("/tmp"); // right
60 #define Path(x) unnamed_Path;
61 // Tip gotten from Bobby Schmidt's column in C/C++ Users Journal