~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/__init__.py

Get rid of relative imports in Launchpad plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
 
"""Launchpad.net integration plugin for Bazaar
18
 
 
19
 
To install this file, put the 'bzr_lp' directory, or a symlink to it,
20
 
in your ~/.bazaar/plugins/ directory.
21
 
"""
 
17
"""Launchpad.net integration plugin for Bazaar."""
22
18
 
23
19
# The XMLRPC server address can be overridden by setting the environment
24
20
# variable $BZR_LP_XMLRPL_URL
84
80
            author='',
85
81
            link_bug=None,
86
82
            dry_run=False):
87
 
        from lp_registration import (
 
83
        from bzrlib.plugins.launchpad.lp_registration import (
88
84
            LaunchpadService, BranchRegistrationRequest, BranchBugLinkRequest,
89
85
            DryRunLaunchpadService)
90
86
        rego = BranchRegistrationRequest(branch_url=branch_url,
139
135
        ]
140
136
 
141
137
    def run(self, name=None, no_check=False):
142
 
        import account
 
138
        from bzrlib.plugins.launchpad import account
143
139
        check_account = not no_check
144
140
 
145
141
        if name is None:
171
167
def test_suite():
172
168
    """Called by bzrlib to fetch tests for this plugin"""
173
169
    from unittest import TestSuite, TestLoader
174
 
    import test_register
175
 
    import test_lp_indirect
176
 
    import test_account
 
170
    from bzrlib.plugins.launchpad import (
 
171
        test_register, test_lp_indirect, test_account)
177
172
 
178
173
    loader = TestLoader()
179
174
    suite = TestSuite()