From 26ea429c6f3b1bba5b6e82b277840581925e9f7f Mon Sep 17 00:00:00 2001 From: Steven Skoczen Date: Mon, 17 Oct 2011 20:47:32 -0700 Subject: [PATCH 1/3] Changed default Boltfile to boltfile.py --- bolt/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bolt/core.py b/bolt/core.py index 1e9e1de..db0b6a3 100644 --- a/bolt/core.py +++ b/bolt/core.py @@ -1405,7 +1405,7 @@ def main(argv=None): ) op.add_option( - '-f', dest='file', default="Boltfile", + '-f', dest='file', default="boltfile.py", help="set the name or path of the bolt file [Boltfile]" ) From 2a940676d81ba7c8a40da6e8b7ca44dc6c3ba390 Mon Sep 17 00:00:00 2001 From: Steven Skoczen Date: Mon, 17 Oct 2011 20:59:34 -0700 Subject: [PATCH 2/3] updated help string --- bolt/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bolt/core.py b/bolt/core.py index db0b6a3..d100705 100644 --- a/bolt/core.py +++ b/bolt/core.py @@ -1406,7 +1406,7 @@ def main(argv=None): op.add_option( '-f', dest='file', default="boltfile.py", - help="set the name or path of the bolt file [Boltfile]" + help="set the name or path of the bolt file [boltfile.py]" ) op.add_option( From b0063ee2651a25932900cebccae87ae435c297d4 Mon Sep 17 00:00:00 2001 From: Steven Skoczen Date: Sat, 29 Oct 2011 18:41:45 -0700 Subject: [PATCH 3/3] Updated to accept Boltfile or boltfile.py --- bolt/core.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bolt/core.py b/bolt/core.py index d100705..87e37c8 100644 --- a/bolt/core.py +++ b/bolt/core.py @@ -1231,6 +1231,9 @@ def init_task_runner(filename, cwd): path = join(cwd, filename) if exists(path): break + elif filename == "Boltfile" and exists(join(cwd, "boltfile.py")): + path = join(cwd, "boltfile.py") + break prev = cwd cwd = dirname(cwd) @@ -1405,8 +1408,8 @@ def main(argv=None): ) op.add_option( - '-f', dest='file', default="boltfile.py", - help="set the name or path of the bolt file [boltfile.py]" + '-f', dest='file', default="Boltfile", + help="set the name or path of the bolt file [Boltfile or boltfile.py]" ) op.add_option(