On Wed, 10 Apr 2013 12:57:48 +0600, Stefan Behnel <stefan...@behnel.de> wrote:

Nikita Nemkin, 10.04.2013 08:44:
Well, here is the workaround Cython can use:
https://gist.github.com/nnemkin/5352088
(Warning: I haven't fully tested it yet).

Interesting. Looks like that could help here, yes. Do you know if it also
works for statically linked binaries? (i.e. would it return the name of the
executable in that case?)

It will return the executable name, but correct behavior for
statically linked modules is to not have __file__ attribute at all.

There is probably a #define that tells when the module is compiled
statically, I just haven't looked into it yet.


Best regards,
Nikita Nemkin
_______________________________________________
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel

Reply via email to