logoalt Hacker News

Siyotoday at 9:53 AM1 replyview on HN

I wonder if something equivalent exists for loading other kinds of assets. Take files that would normally live under `/usr/share`. References to these files are typically hardcoded with an absolute path as well. It's usually possible to relocate them at build time by specifying a different absolute prefix, but making them relative the conventional way would likely require patching.


Replies

aboardRat4today at 3:24 PM

You can always set "RESOURCE_PATH" and load your files from there.

show 1 reply