Hacker GitHub

← All repos

gpakosz/whereami

View on GitHub ↗ ★ 531 C

Locate the current running executable and the current running module/library on the file system 🔎

4 mentions on Hacker News by 3 people: 1 story, 3 comments · first 2015-03-05 · latest 2024-09-03

Mentions per year 4 mentions · busiest year 2015 (2)
20082026
  1. There's also this very handy and tiny cross-platform library: https://github.com/gpakosz/whereami
    comment by flohofwoe · 2024-09-03 · in Why bother with argv[0]?
  2. …executable. [1] _NSGetExecutablePath, GetModuleFileName(), getexecname() etc EDIT: Apparently https://github.com/gpakosz/whereami will manage a lot of this complexity for you
  3. …executable, and doing this in a portable way is several hundred lines of code already, e.g.: https://github.com/gpakosz/whereami/blob/master/src/whereami...