mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
Avoid shadowing the dir builtin
Proposed by David Malcolm, https://bugzilla.gnome.org/show_bug.cgi?id=636387
This commit is contained in:
parent
05428e3c1a
commit
8071012728
@ -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 ())
|
||||
|
Loading…
Reference in New Issue
Block a user