On Tuesday, June 19, 2012 11:02:01 PM UTC-7, jason wrote:
>
> Around line 296 in SAGE_ROOT/spkg/bin/sage, there seems to be a check to
> see if we should make the DOT_SAGE directory in the sage_setup()
> funciton. The check is:
>
> if [ ! -d "$IPYTHON_DIR" ]; then
> mkdir -p "$DOT_SAGE"
> fi
>
> Why are we checking to see if IPYTHON_DIR is defined in order to see if
> we should create DOT_SAGE??
>
I thought that the check was
IPYTHONDIR="$DOT_SAGE/ipython" && export IPYTHONDIR
if [ ! -d "$IPYTHONDIR" ]; then
mkdir -p "$DOT_SAGE"
cp -r "$SAGE_ROOT/ipython" "$DOT_SAGE/"
fi
("-d" means "is a directory", not "is defined", by the way.)
That is, we want to copy the 'ipython' directory to DOT_SAGE to create
IPYTHONDIR, so we need to make sure that DOT_SAGE exists first.
Note that we also try to create DOT_SAGE in sage.misc.misc.
--
John
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org