Ask Your Question

Revision history [back]

Why don't you set $HOME in your python script? Maybe try

if 'HOME' not in os.environ:
    os.environ['HOME'] = ...something you have write access to...

(The script $SAGE_ROOT/spkg/bin/sage-env, which is run each time Sage starts up, requires that $HOME is set.)