# HG changeset patch # User Jeff Hammel # Date 1389913163 28800 # Node ID 5fa35ff8664485cac10408ca530e1246a862aabf # Parent aed8c4af5f2642525c29cc0bc4245017c0c4cb98 STUB: makeitso/script2package.py diff -r aed8c4af5f26 -r 5fa35ff86644 makeitso/script2package.py --- a/makeitso/script2package.py Thu Jan 16 13:31:54 2014 -0800 +++ b/makeitso/script2package.py Thu Jan 16 14:59:23 2014 -0800 @@ -46,11 +46,16 @@ if len(args) != 1: parser.error("Please specify a source script") + # require a directory (for now) + # options.force = False # -> add_options + if os.path.exists(options.output) and not os.path.isdir(options.output): + parser.error("'%s' is a file" % options.output) + # configure template template = PythonModuleTemplate if options.py_module else PythonPackageTemplate # interpolate template - + import pdb; pdb.set_trace() # TODO