]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/dir.h
Store absolute path to argv[0] in Application
[libs/core.git] / source / fs / dir.h
index 6bd760ced68be0ea6bdd57934d2cce925a32e70d..d62df8cde781896d30fc64a1f99091fa22c3fcef 100644 (file)
@@ -63,6 +63,13 @@ Path get_sys_lib_dir();
 /// Changes the current working directory
 void chdir(const Path &);
 
+/** Looks for a file in a list of paths.  Returns the absolute path to the
+first existing location, or an empty Path if the file is not found at all. */
+Path path_lookup(const std::string &, const std::list<Path> &);
+
+/** Looks for a file using the PATH environment variable. */
+Path path_lookup(const std::string &);
+
 } // namespace FS
 } // namespace Msp