Good morning,
My name is Juan Cristóbal, from Spain.
We are packing up most of our libraries in python to a .pyd using cython 3.0.
Everything compiles ok and we are able to build up the dll/pyd.
But when importing the library, here comes trouble:
i get a "__file__" is not defined error.
We have lots of places where we use something like "os.path.dirname(__file__)" and alike.
My assumption is that the translated C __FILE__ works differently, which much probably be in use in the pyd.
My question is: is there an alternative to "__file__" and all the "inspect" module functions? (None of them are believed to be working in a Cython translated code).
We have many places in our code that make use of relative paths from a specific file.
So, using something like "__file__" but that works in a .pyd is more than welcome.
Thanks.