y
hard-code them at all, then?
So, I am going to have to ignore the “$srcdir and $datadir” specifics,
and address the stated intent.
The current convention in Python build systems is the Setuptools
library. You will be familiar with the ‘setup.py’ top-level script for
co-ordinating Setuptools action
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
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 dif
In GNU software written in C $srcdir and $datadir are accessible to C code
through generated config.h file.
What is the right way to config directories for a Python program?
--
Victor Porton - http://portonvictor.org
--
https://mail.python.org/mailman/listinfo/python-list