4 from wizard import command
7 options, args = parse_args(argv, baton)
8 if not os.path.exists(",git"):
9 raise Exception("Not in root directory of Git working copy")
11 open(".scripts/.htaccess", "w").write("Deny from all\n")
13 def parse_args(argv, baton):
14 usage = """usage: %prog prepare-new
16 Creates a .scripts directory and standard files that live in it.
18 parser = command.WizardOptionParser(usage)
19 options, args = parser.parse_all(argv)
21 parser.error("too many arguments")