Search code examples
c++boostboost-filesystem

Boost.Filesystem how to find out in which directory your executable is?


So I run my app. I need for it to know where its executable is. How to find path to it using Boost.Filesystem?


Solution

  • If you mean from inside the executable that you're running, you can use boost::filesystem::current_path()