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.
22 Path::Path(string const & path)
26 pushedDir_ = getcwd();
27 if (pushedDir_.empty() || chdir(path))
44 // should throw an exception
45 // throw logical_error();
49 if (chdir(pushedDir_)) {
50 // should throw an exception
51 // throw DirChangeError();
58 } // namespace support