perseus:[~] PYTHONPATH=/usr/share/software-center python
Python 2.7.1+ (r271:86832, Feb 24 2011, 15:00:15)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from softwarecenter.db.database import parse_axi_values_file
>>> print parse_axi_values_file()
None
axi_values = parse_axi_ values_ file()
...
perseus:[~] PYTHONPATH= /usr/share/ software- center python db.database import parse_axi_ values_ file values_ file()
Python 2.7.1+ (r271:86832, Feb 24 2011, 15:00:15)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from softwarecenter.
>>> print parse_axi_
None
...
def parse_axi_ values_ file(filename= "/var/lib/ apt-xapian- index/values" ):
...
perseus:[~] less /var/lib/ apt-xapian- index/values apt-xapian- index/values: No such file or directory
/var/lib/
...which is because I don't have apt-xapian-index installed.