3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
8 * Full author contact details are available in file CREDITS.
13 // Needed to prevent the definition of the unnamed_Path macro in the header file.
16 #include "support/path.h"
17 #include "support/lyxlib.h"
26 Path::Path(string const & path)
30 pushedDir_ = getcwd();
32 if (pushedDir_.empty() || chdir(path)) {
50 // should throw an exception
51 // throw logical_error();
55 if (chdir(pushedDir_)) {
56 // should throw an exception
57 // throw DirChangeError();
64 } // namespace support