~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

Load transports when they're first used.

- cleans up startup code
- plugins can import modules like paramiko that won't be present, 
  and just fail if they're not loaded
- possibly faster at startup

Show diffs side-by-side

added added

removed removed

Lines of Context:
450
450
    --profile
451
451
        Run under the Python profiler.
452
452
    """
453
 
    import bzrlib.transport
454
 
    bzrlib.transport.register_builtin_transports()
455
 
    
456
453
    argv = [a.decode(bzrlib.user_encoding) for a in argv]
457
454
 
458
455
    opt_profile = opt_no_plugins = opt_builtin = False