~pwlars/lava-test/dashboard-setup

« back to all changes in this revision

Viewing changes to abrek/main.py

  • Committer: Paul Larson
  • Date: 2010-06-22 18:00:23 UTC
  • mfrom: (4.2.1 abrek-renamecommands)
  • Revision ID: paul.larson@canonical.com-20100622180023-k96fcrwkssgvd0nz
rename abrek.commands to abrek.command

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import sys
2
 
import abrek.commands
 
2
import abrek.command
3
3
 
4
4
def main(argv=None):
5
5
    if argv is None:
7
7
        if not argv:
8
8
            argv = ['help']
9
9
        cmd = argv.pop(0)
10
 
        cmd_func = abrek.commands.get_command(cmd)
 
10
        cmd_func = abrek.command.get_command(cmd)
11
11
        if not cmd_func:
12
12
            print "command '%s' not found" % cmd
13
13
            return 1