~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: Robert Collins
  • Date: 2007-02-02 16:17:55 UTC
  • mto: (2257.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: robertc@robertcollins.net-20070202161755-zy2d68928wqwehj6
Allow 'import bzrlib.plugins.NAME' to work when the plugin NAME has not
yet been loaded by load_plugins(). This allows plugins to depend on each
other for code reuse without requiring users to perform file-renaming
gymnastics. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
                    'Consider using bzrlib.ignores.add_unique_user_ignores'
55
55
                    ' or bzrlib.ignores.add_runtime_ignores')
56
56
 
 
57
# allow bzrlib plugins to be imported.
 
58
import bzrlib.plugin
 
59
bzrlib.plugin.set_plugins_path()
 
60
 
 
61
 
57
62
def test_suite():
58
63
    import tests
59
64
    return tests.test_suite()