Avoid shadowing the dir builtin

Proposed by David Malcolm,

https://bugzilla.gnome.org/show_bug.cgi?id=636387
This commit is contained in:
Matthias Clasen 2010-12-03 14:08:36 -05:00
parent 05428e3c1a
commit 8071012728

View File

@ -2,9 +2,9 @@ import sys
import gdb
# Update module path.
dir = '@datadir@/glib-2.0/gdb'
if not dir in sys.path:
sys.path.insert(0, dir)
dir_ = '@datadir@/glib-2.0/gdb'
if not dir_ in sys.path:
sys.path.insert(0, dir_)
from gobject import register
register (gdb.current_objfile ())