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: | 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 , 7 years ago
comment:4 by , 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.
4 yrs+ and still no plan about this......
Is there some reason to not make this function?