This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[python] fix use of pythonlibdir
- From: Tom Tromey <tromey at redhat dot com>
- To: Project Archer <archer at sourceware dot org>
- Date: Thu, 05 Mar 2009 11:07:14 -0700
- Subject: [python] fix use of pythonlibdir
- Reply-to: Tom Tromey <tromey at redhat dot com>
I missed a use of pythonlibdir in yesterday's patch.
Fixed as appended.
Tom
2009-03-05 Tom Tromey <tromey@redhat.com>
* python/lib/gdb/command/require.py (RequireSubcommand.complete):
Use pythondir.
diff --git a/gdb/python/lib/gdb/command/require.py b/gdb/python/lib/gdb/command/require.py
index f75faad..1fbc1e8 100644
--- a/gdb/python/lib/gdb/command/require.py
+++ b/gdb/python/lib/gdb/command/require.py
@@ -1,6 +1,6 @@
# Demand-loading commands.
-# Copyright (C) 2008 Free Software Foundation, Inc.
+# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -41,7 +41,7 @@ class RequireSubcommand (gdb.Command):
exec ('import gdb.' + self.name + '.' + cmd, globals ())
def complete (self, text, word):
- dir = gdb.pythonlibdir + '/gdb/' + self.name
+ dir = gdb.pythondir + '/gdb/' + self.name
result = []
for file in os.listdir(dir):
if not file.startswith (word) or not file.endswith ('.py'):