mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +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
|
import gdb
|
||||||
|
|
||||||
# Update module path.
|
# Update module path.
|
||||||
dir = '@datadir@/glib-2.0/gdb'
|
dir_ = '@datadir@/glib-2.0/gdb'
|
||||||
if not dir in sys.path:
|
if not dir_ in sys.path:
|
||||||
sys.path.insert(0, dir)
|
sys.path.insert(0, dir_)
|
||||||
|
|
||||||
from gobject import register
|
from gobject import register
|
||||||
register (gdb.current_objfile ())
|
register (gdb.current_objfile ())
|
||||||
|
Loading…
Reference in New Issue
Block a user