##// END OF EJS Templates
- Work around pexcept buglet which causes wraparound problems with long...
- Work around pexcept buglet which causes wraparound problems with long input lines in irunner. - Move arg_split to genutils so it can be more generally reused. - Modify OInspect to expose a publicly available getsource() routine. At the request of SAGE, which knows how to extract docstrings from Pyrex extensions.

File last commit:

r0:6f629fcc
r390:94d39235
Show More
bkprc.py
22 lines | 874 B | text/x-python | PythonLexer
# config file for a quick'n dirty backup script that uses rsync
# output directory for backups
outdir = '~/tmp'
# list directories to backup as a dict with 1 or 0 values for
# recursive (or not) descent:
to_backup = {'~/ipython/ipython':1}
# exclude patterns. anything ending in / is considered a directory
exc_pats = '#*# *~ *.o *.pyc *.pyo MANIFEST *.pdf *.flc build/ dist/ ' \
' doc/manual/ doc/manual.lyx ChangeLog.* magic.tex *.1.gz '
# final actions after doing the backup
def final():
dbg = 0
version = bq('ipython -V')
out_tgz = outdir+'/ipython-'+version+'.tgz'
xsys(itpl('cd $outdir; pwd;tar -czf $out_tgz ipython'),debug=dbg,verbose=1)
#xsys(itpl('cp $out_tgz /mnt/card/fperez/ipython'),debug=dbg,verbose=1)
xsys(itpl('mv $out_tgz ~/ipython/backup'),debug=dbg,verbose=1)
xsys(itpl('rm -rf ${outdir}/ipython'),debug=dbg,verbose=1)