Victor Porton writes:
> I want my program to work both when it is installed (using $datadir)
> and when it is not yet installed (using $srcdir).
Given your descriptions of both those, I don't see how it can reliably
work; the program will expect directories that may not exist. Why
hard-code them
First, I've already solved my problem using setuptools and
pkg_resources.resource_stream() and an environment variable to specify the
path to data files.
Ben Finney wrote:
> Victor Porton writes:
>
>> In GNU software written in C $srcdir and $datadir are accessible to C
>> code through generat
Victor Porton writes:
> In GNU software written in C $srcdir and $datadir are accessible to C
> code through generated config.h file.
For what purpose?
Given that the source may not be at that location after the program is
compiled – especially, after the program is moved to a different machine