comparison makeitso/script2package.py @ 175:5fa35ff86644

STUB: makeitso/script2package.py
author Jeff Hammel <k0scist@gmail.com>
date Thu, 16 Jan 2014 14:59:23 -0800
parents aed8c4af5f26
children 668b01d04457
comparison
equal deleted inserted replaced
174:aed8c4af5f26 175:5fa35ff86644
44 add_options(parser) 44 add_options(parser)
45 options, args = parser.parse_args(args) 45 options, args = parser.parse_args(args)
46 if len(args) != 1: 46 if len(args) != 1:
47 parser.error("Please specify a source script") 47 parser.error("Please specify a source script")
48 48
49 # require a directory (for now)
50 # options.force = False # -> add_options
51 if os.path.exists(options.output) and not os.path.isdir(options.output):
52 parser.error("'%s' is a file" % options.output)
53
49 # configure template 54 # configure template
50 template = PythonModuleTemplate if options.py_module else PythonPackageTemplate 55 template = PythonModuleTemplate if options.py_module else PythonPackageTemplate
51 56
52 # interpolate template 57 # interpolate template
53 58 import pdb; pdb.set_trace()
54 59
55 # TODO 60 # TODO
56 61
57 if __name__ == '__main__': 62 if __name__ == '__main__':
58 main() 63 main()