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'"
15 profd
=`$IPYTHON --quick --profile=$IOSCOPY --no-banner --quiet --no-confirm-exit --classic<< EOF| grep /
17 print "\n" + ip.profile_dir.location + "\n"
21 $IPYTHON profile list
--log-level=40 |
grep $IOSCOPY > /dev
/null
23 echo IPython
$IOSCOPY profile not found
, creating it.
24 $IPYTHON profile create
$IOSCOPY
26 cp @datarootdir@
/oscopy
/ipython_config.py
$profd
29 if [ ! -f "$profd/ipython_config.py" ]; then
30 echo IPython
$IOSCOPY profile
file not found
, copying it.
31 cp @datarootdir@
/oscopy
/ipython_config.py
$profd
32 elif [ "$profd/ipython_config.py" -ot "@datarootdir@/oscopy/ipython_config.py" ]; then
35 read -p "IPython $IOSCOPY profile file is outdated, update [N/y] ? " upd
37 if [ "$upd" = "Y" -o "$upd" = "y" ] ; then
38 echo Updating IPython
$IOSCOPY profile.
40 cp @datarootdir@
/oscopy
/ipython_config.py
$profd
42 echo "skipping profile update."
48 # Replace short args with their equivalent, and delete space between = and
49 # file name when needed
52 argout=[reps.get(s, s) for s in "$*".split()]
53 print " ".join(argout).replace(".f= ", ".f=")
55 #echo ///// $args +++++++++++++++++++++++
56 $IPYTHON --profile=$IOSCOPY $args