Avoid shadowing dir builtin

This is the same change that was already applied to the other gdb
script we ship. I had forgotten there was a second one.
This commit is contained in:
Matthias Clasen 2010-12-03 14:39:59 -05:00
parent d11f413345
commit 99332dd27c

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 glib import register
register (gdb.current_objfile ())