diff 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
line wrap: on
line diff
--- 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