~elachuni/software-center/pep8-test-part7

« back to all changes in this revision

Viewing changes to softwarecenter/view/installedpane.py

  • Committer: Michael Vogt
  • Date: 2009-09-25 15:30:34 UTC
  • Revision ID: michael.vogt@ubuntu.com-20090925153034-vf6oqy9j66fc6jcz
renamed to "Ubuntu Software Center" and software-center (LP: #436648)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
from gettext import gettext as _
31
31
 
32
 
try:
33
 
    from appcenter.enums import *
34
 
except ImportError:
35
 
    # support running from the dir too
36
 
    d = os.path.dirname(os.path.abspath(os.path.join(os.getcwd(),__file__)))
37
 
    sys.path.insert(0, os.path.split(d)[0])
38
 
    from enums import *
 
32
from softwarecenter.enums import *
39
33
 
40
34
from appview import AppView, AppStore, AppViewFilter
41
35
 
42
36
from softwarepane import SoftwarePane, wait_for_apt_cache_ready
43
37
 
44
38
class InstalledPane(SoftwarePane):
45
 
    """Widget that represents the installed panel in software-store
 
39
    """Widget that represents the installed panel in software-center
46
40
       It contains a search entry and navigation buttons
47
41
    """
48
42
 
148
142
    elif os.path.exists("./data"):
149
143
        datadir = "./data"
150
144
    else:
151
 
        datadir = "/usr/share/software-store"
 
145
        datadir = "/usr/share/software-center"
152
146
 
153
147
    db = xapian.Database(pathname)
154
148
    icons = gtk.icon_theme_get_default()