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"
23 $IPYTHON profile list
--log-level=40 |
grep $IOSCOPY > /dev
/null
25 echo IPython
$IOSCOPY profile not found
, creating it.
26 $IPYTHON profile create
$IOSCOPY
28 if [ ! -d $profd ]; then
31 cp @datarootdir@
/oscopy
/ipython_config.py
$profd
34 if [ ! -f "$profd/ipython_config.py" ]; then
35 echo IPython
$IOSCOPY profile
file not found
, copying it.
36 cp @datarootdir@
/oscopy
/ipython_config.py
$profd
37 elif [ "$profd/ipython_config.py" -ot "@datarootdir@/oscopy/ipython_config.py" ]; then
40 read -p "IPython $IOSCOPY profile file is outdated, update [N/y] ? " upd
42 if [ "$upd" = "Y" -o "$upd" = "y" ] ; then
43 echo Updating IPython
$IOSCOPY profile.
45 cp @datarootdir@
/oscopy
/ipython_config.py
$profd
47 echo "skipping profile update."
53 # Replace short args with their equivalent, and delete space between = and
54 # file name when needed
57 argout=[reps.get(s, s) for s in "$*".split()]
58 print " ".join(argout).replace(".f= ", ".f=")
60 #echo ///// $args +++++++++++++++++++++++
61 $IPYTHON --profile=$IOSCOPY $args