The card I gave myself today says “Read Python language docs until I have written down 10 new things.” Why? Somebody pointed out that var = val or '-' was cleaner than the mess I used instead, and I realized that much more effort is required. (Were it Perl, I’d probably …
Articles in the Python category
Sometimes the python command in the virtualenv isn’t quite enough.
Contents of script run_with_env.sh:
#!/bin/sh envdir=$1 shift curdir=$1 shift . $envdir/bin/activate && cd $curdir && exec "$@"
This runs a specified command (plus arguments) in a particular directory within a particular virtualenv.
$ crontab -l ... 30 …