]> git.lyx.org Git - lyx.git/blobdiff - src/support/Package.h
add debug function which prints the callstack to stderr, disabled by default
[lyx.git] / src / support / Package.h
index cb48bb2fe59db78f47cca74ede1ba0ceef6fde64..b8eb197fc4ef1d02fb420ca8a881f21be5112a34 100644 (file)
@@ -52,6 +52,8 @@ void init_package(std::string const & command_line_arg0,
                  std::string const & command_line_user_support_dir,
                  exe_build_dir_to_top_build_dir);
 
+bool packageInitialized();
+
 /** Accessor to the global data.
  *  Asserts that init_package() has been called first.
  */
@@ -78,6 +80,11 @@ public:
         */
        FileName const & lyx_binary() const { return lyx_binary_; }
 
+       /** The absolute path to the LyX package directory.
+        *  This is one level up from the binary dir.
+        */
+       FileName const & lyx_dir() const { return lyx_dir_; }
+
        /** The top of the LyX source code tree.
         */
        static FileName const & top_srcdir();
@@ -142,6 +149,7 @@ public:
 private:
        FileName binary_dir_;
        FileName lyx_binary_;
+       FileName lyx_dir_;
        FileName system_support_dir_;
        FileName build_support_dir_;
        FileName user_support_dir_;