~chris.macnaughton/mojo/error-output

« back to all changes in this revision

Viewing changes to bin/mojo

  • Committer: Matthew Wedgwood
  • Date: 2013-06-21 23:20:49 UTC
  • Revision ID: matthew.wedgwood@canonical.com-20130621232049-41qz1m0w0yra8q5c
First two mojo tools, init and collect

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
import sys
 
4
 
 
5
import os.path
 
6
 
 
7
my_lib = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
 
8
if os.path.exists(os.path.join(my_lib, 'mojo')):
 
9
    sys.path.insert(0, my_lib)
 
10
 
 
11
from mojo.cli import main
 
12
 
 
13
if __name__ == '__main__':
 
14
    sys.exit(main())