En Mon, 12 Oct 2009 19:07:38 -0300, Buck <workithar...@gmail.com> escribió:
On Oct 10, 1:57 am, Steven D'Aprano <st...@remove-this-
cybersource.com.au> wrote:
#!/usr/bin/python
import os, sys

if __name__ == '__main__':
    # find out where we are, and add it to the path
    [...]

That's not a lot of boilerplate for a script.

My issues with boilerplate are several. [...]

As pointed out before, all this boilerplate code is actually unnecesary.
Just import the module you want from its package, and you're done (usually).

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to