Opened 11 years ago

Last modified 7 years ago

#5889 new Feature Requests

Add way to get the path to the running executable

Reported by: ergosys@… Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.47.0 Severity: Not Applicable
Keywords: Cc:

Description

The filesystem component is missing a function to return the path to the currently running executable. This is useful for finding associated program files without resorting to e.g. environmental variables.

A discussion of the current system-specific ways to do this:

http://stackoverflow.com/q/1023306 and http://stackoverflow.com/q/933850

An example of a similar function exists in the Qt library: QCoreApplication::applicationFilePath()

Change History (4)

comment:1 by anonymous, 7 years ago

4 yrs+ and still no plan about this......

Is there some reason to not make this function?

comment:2 by anonymous, 7 years ago

This functionality useful for me too.

comment:3 by anonymous, 7 years ago

This functionality useful for me too.

comment:4 by blole, 7 years ago

It would also be nice to be able to get the path of the current dynamically loaded library when executing code inside it.

Note: See TracTickets for help on using tickets.