"Rob Wolfe" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> Imbaud Pierre <[EMAIL PROTECTED]> writes:
>
>> I am willing to retrieve the file an imported module came from;
>> module.__file__, or inspect.getfile(module) only gives me the
>> relative file name. How do I determine
Imbaud Pierre <[EMAIL PROTECTED]> writes:
> I am willing to retrieve the file an imported module came from;
> module.__file__, or inspect.getfile(module) only gives me the
> relative file name. How do I determine the path?
>>> import os
>>> os.path.abspath(module.__file__)
--
HTH,
Rob
--
http:
No non-printing characters.
However, I just tried copying the file (from a windows cmd prompt), and
the copy was cut off at the same point the interpreter is getting to.
When I edit the file with vim, though, the whole thing comes through.
I think this is a pretty strong indication that this monke
Lonnie Princehouse wrote:
I've run into some eccentric behavior... It appears that one of my
modules is being cut off at exactly 2^14 characters when I try to
import it. Has anyone else encountered this? I can't find any mention
of such a bug, and stranger yet, other modules that exceed 16384
ch