On Wed, Apr 23, 2008 at 8:39 PM, Ville M. Vainio <[EMAIL PROTECTED]> wrote:
>
> Yeah, decorators get around this.
>
>
> Perhaps you could do:
>
> for f in pyFiles:
> @task("checker")
> @depend(f)
> def check():
> c("pychecker %s" % f)
>
> Never underestimate the magic that is nested s
Eduardo Schettino wrote:
I find the doit syntax a bit cumbersome, especially as you can avoid
'args' by just returning a lamda in 'action'.
My idea was to: do *not* add any new syntax (to avoid being
cumbersome). It is just python, you dont have to import or subclass
Yeah, decorators get
I guess I should post a link to the project in this thread...
http://python-doit.sourceforge.net/
--
http://mail.python.org/mailman/listinfo/python-list
>
> I took a look at dolt syntax, and saw this:
>
> QQQ
>
> def create_folder(path):
> """Create folder given by "path" if it doesnt exist"""
> if not os.path.exists(path):
> os.mkdir(path)
> return True
>
> def task_create_build_folder():
> buildFolder = jsPath + "
On 21 Apr, 16:51, "Ville M. Vainio" <[EMAIL PROTECTED]> wrote:
>
> Wouldn't it be more convenient to provide syntax like this:
>
> @task("create_build_folder")
> @depend("dep1 some_other_dep")
> def buildf():
> buildFolder = jsPath + "build"
> create_folder(buildFolder)
I'd want to make the "g
Eduardo Schettino wrote:
> DoIt is a build tool that focus not only on making/building things but on
> executing any kind of tasks in an efficient way. Designed to be easy to use
> and "get out of your way".
I took a look at dolt syntax, and saw this:
QQQ
def create_folder(path):
"""Create