Featured post

new redirect for blender.org bpy docs.

http://www.blender.org/api/blender_python_api_current/ As of 10/11 november 2015 we can now link to the current api docs and not be worr...

April 10, 2013

Command line scripts

Recently a friend showed me a unix C program calender that behaves differently depending on if you run the program as cal or CAL. Uppercase shows the calender in one orientation, and lowercase flips it. Python can also detect if the script name is upper or lowercase. Here's a dry example:
> python PASSING.py
PASSING is uppercase

> python passing.py
passing is lowercase
I think this is pretty neat.