8 REPS
="'-b': '$IOCFG.b=True $IOCFG.f=',\
9 '-i': '$IOCFG.i=True',\
10 '-h': '$IOCFG.h=True',\
12 '-q': '--no-banner --IOscopyConfig.quiet=True'"
16 profd
=`$IPYTHON --quick --profile=$IOSCOPY --no-banner --quiet --no-confirm-exit --classic --HistoryManager.hist_file=$tmpf<< EOF| grep /
18 print "\n" + ip.profile_dir.location + "\n"
25 echo IPython not found
29 $IPYTHON profile list
--log-level=40 |
grep $IOSCOPY > /dev
/null
31 echo IPython
$IOSCOPY profile not found
, creating it.
32 $IPYTHON profile create
$IOSCOPY
34 cp @datarootdir@
/oscopy
/ipython_config.py
$profd
37 if [ ! -f "$profd/ipython_config.py" ]; then
38 echo IPython
$IOSCOPY profile
file not found
, copying it.
39 cp @datarootdir@
/oscopy
/ipython_config.py
$profd
40 elif [ "$profd/ipython_config.py" -ot "@datarootdir@/oscopy/ipython_config.py" ]; then
43 read -p "IPython $IOSCOPY profile file is outdated, update [N/y] ? " upd
45 if [ "$upd" = "Y" -o "$upd" = "y" ] ; then
46 echo Updating IPython
$IOSCOPY profile.
48 cp @datarootdir@
/oscopy
/ipython_config.py
$profd
50 echo "skipping profile update."
56 # Replace short args with their equivalent, and delete space between = and
57 # file name when needed
60 argout=[reps.get(s, s) for s in "$*".split()]
61 print " ".join(argout).replace(".f= ", ".f=")
63 #echo ///// $args +++++++++++++++++++++++
64 $IPYTHON --profile=$IOSCOPY $args