4 from wizard import command, shell
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")
12 shell.call("git", "add", ".scripts")
14 def parse_args(argv, baton):
15 usage = """usage: %prog prepare-new
17 Creates a .scripts directory and standard files that live in it.
19 parser = command.WizardOptionParser(usage)
20 options, args = parser.parse_all(argv)
22 parser.error("too many arguments")