[Cython] Why does embed-position use relative filenames?

Erik Bray erik.m.bray at gmail.com
Wed Oct 25 09:36:16 EDT 2017


On Wed, Oct 25, 2017 at 2:50 PM, Jeroen Demeyer <jdemeyer at cage.ugent.be> wrote:
> On 2017-10-25 14:42, Erik Bray wrote:
>>
>> IMO the relative paths make more sense in a way, because when the
>> module is installed the path is relative to the file's location
>> relative to its `sys.path` entry.
>>
>> If it defaulted to absolute paths
>
>
> I didn't say that it should default to absolute paths. I am saying that it
> should take the path how it received from the caller. Don't make it relative
> or absolute.

I see--I agree, that would make the most sense.  I was implying you
thought the default should be absolute; just giving a reason it might
make sense in the common case to use relative paths.  Agreed that
ideally it should *not* convert a given absolute path to relative.


More information about the cython-devel mailing list