Commits

Ronny Pfannschmidt  committed 8a6b4c0

simplify composer construction

  • Participants
  • Parent commits aab0fe4

Comments (0)

Files changed (2)

File couchdb_compose/__main__.py

 
 def main(argv=None, composer=None):
     args = parser.parse_args(argv)
-    composer = composer or Composer(py.path.local(args.path))
+    composer = composer or Composer(args.path)
     composer.run_actions(actions)
     args.func(args, composer)
 

File couchdb_compose/cli.py

 from argparse import ArgumentParser
 parser = ArgumentParser(prog='couchdb-compose')
 
-parser.add_argument('--path', nargs='?', default=py.std.os.getcwd())
+parser.add_argument('--path', nargs='?',  default=py.path.local(), type=py.path.local)
 subparsers = parser.add_subparsers()
 
 show_parser = subparsers.add_parser('show', help='show the constructed ddoc')