This is the mail archive of the
mailing list for the GDB project.
Re: [PATCH] Add support for gdb.PYTHONDIR as $gdb_datadir/python.
On Thu, Jun 24, 2010 at 12:05 PM, Tom Tromey <firstname.lastname@example.org> wrote:
>>>>>> "Doug" == Doug Evans <email@example.com> writes:
> Doug> The execfile of __init__.py feels odd. ?I haven't seen it done
> Doug> elsewhere and I wonder if it's needed.
> Doug> [I know python has __init__.py, I just don't know if we have to
> Doug> *explicitly* exec it.]
> Normally, no, but in this case we do because the "gdb" module is created
> in C code, not via an import.
If a comment to that effect is added to the code, then I'm happy with
the patch. :-)