/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Jelmer Vernooij
  • Date: 2008-07-31 01:51:56 UTC
  • mto: (580.2.1 gtk.gloom)
  • mto: This revision was merged to the branch mainline in revision 581.
  • Revision ID: jelmer@samba.org-20080731015156-ow92ihsd75csbk46
Try to import rather than use getattr to avoid problems wrt the order in which plugins are loaded.

Show diffs side-by-side

added added

removed removed

Lines of Context:
567
567
    cmd_visualise
568
568
    ]
569
569
 
570
 
if getattr(bzrlib.plugins, "loom", None) is not None:
 
570
try:
 
571
    from bzrlib.plugins import loom
 
572
except ImportError:
 
573
    pass # Loom plugin doesn't appear to be present
 
574
else:
571
575
    commands.append(cmd_gloom)
572
576
 
573
577
for cmd in commands: