Changeset 691


Ignore:
Timestamp:
09/26/05 10:22:29 (19 years ago)
Author:
mar637
Message:

bin/asap: add use of share directory, ipythonrc setup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/asap

    r689 r691  
    4444if [ ! -d "${ASAPDATA}" ]; then
    4545    echo "Couldn't locate the asap data directory"
    46     ASAPDATA="/nfs/aips++"
     46    #ASAPDATA="/nfs/aips++"
    4747    #export ASAPDATA
    4848    #exit 1
     
    5555        platform='darwin'
    5656    fi
    57     AIPSPATH="${ASAPDATA} ${platform} somewhere localhost"     
     57    AIPSPATH="${ASAPDATA} ${platform} somewhere localhost"
    5858    export AIPSPATH
    5959else
     
    6363
    6464# started for the first time
    65 ASAPUSERDIR="${HOME}/.asap"
     65ASAPUSERDIR="${HOME}/.asap"; export ASAPUSERDIR
    6666if [ ! -d ${ASAPUSERDIR} ]; then
    6767    echo 'First time ASAP use. Setting up ~/.asap'
    6868    mkdir "${ASAPUSERDIR}"
    69     cp "/tmp/ipythonrc-asap" "${ASAPUSERDIR}/"
    70     #cp "${ASAPDATA}/ipythonrc-asap" "${ASAPUSERDIR}/"
     69    cp "${ASAPDATA}/ipythonrc-asap" "${ASAPUSERDIR}/"
     70    echo "#Dummy placeholder. All info is in ipythonrc-asap" > "${ASAPUSERDIR}/ipythonrc"
    7171    touch "${ASAPUSERDIR}/asapuserfuncs.py"
    7272fi
     
    7979    p="`which python`"
    8080    $p -c 'from asap import *'
    81 else   
     81else
    8282    $ip -ipythondir "${ASAPUSERDIR}" -p 'asap' $*
    8383fi
Note: See TracChangeset for help on using the changeset viewer.