This script connect the sun light with the sky texture node.
You only need run this script in your scene in cycles render engine.
If you haven’t a sun light the script will add a new light.
In other words, the script let you have the sun and the sky in the same direction!
You can find something more in oscurart.blogspot.com