8 profd
=`$IPYTHON --quick --profile=$IOSCOPY --no-banner --quiet --no-confirm-exit --classic<< EOF| grep /
10 print "\n" + ip.profile_dir.location + "\n"
14 $IPYTHON profile list
--log-level=40 |
grep $IOSCOPY > /dev
/null
16 echo IPython
$IOSCOPY profile not found
, creating it.
17 $IPYTHON profile create
$IOSCOPY
19 cp @datarootdir@
/oscopy
/ipython_config.py
$profd
22 if [ ! -f "$profd/ipython_config.py" ]; then
23 echo IPython
$IOSCOPY profile
file not found
, copying it.
24 cp @datarootdir@
/oscopy
/ipython_config.py
$profd
25 elif [ "$profd/ipython_config.py" -ot "@datarootdir@/oscopy/ipython_config.py" ]; then
28 read -p "IPython $IOSCOPY profile file is outdated, update [N/y] ? " upd
30 if [ "$upd" = "Y" -o "$upd" = "y" ] ; then
31 echo Updating IPython
$IOSCOPY profile.
33 cp @datarootdir@
/oscopy
/ipython_config.py
$profd
35 echo "skipping profile update."
41 args
=`echo $* | sed -e 's/-b[[:space:]]*/--IOscopy.batch=True --IOscopy.file=/; s/-i/--IOscopy.interactive=True/ ; s/-h/--IOscopy.help=True/ ; s/-H/-h/; s/-q/--IOscopy.quiet=True/'`
42 $IPYTHON --profile=$IOSCOPY $args