jplehmann/coursera — pull request #188 by arlimus (2013-09-03 10:50:59+00:00)
Title: move cache folder from ROOT/_cache to tempdir determined by tempfile mod...

Keeping the cache path in the root folder is ok as long as you run it from within the folder. But if you install it in your system (e.g. in Arch Linux: https://aur.archlinux.org/packages/coursera-dl-git/), it will try to create the cache file in a folder that is accessible to root only (/usr/lib/python3.3/site-packages/_cache). Changing it to tempfile module helps finding a temporary folder that should work for the user (/tmp on linux).

Signed-off-by: Dominik Richter