##// END OF EJS Templates
Minor fixes in genutils, and a BIG fix for threading. I _think_ I got...
Minor fixes in genutils, and a BIG fix for threading. I _think_ I got Ctrl-C to work in the threaded shells, and the solution is in fact absolutely trivial. The new code is _much_ simpler than what we had! This needs testing, because I find it almost hard to believe that we hadn't tried this before. But if it works, great! The only limitation is that in threaded mode, the traceback shows the internal sigint handler frame. Big deal, it's just cosmetic.

File last commit:

r0:6f629fcc
r20:fb5e5b43
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)