Mercurial > hgbook
comparison en/examples/run-example @ 83:b476081a9c04
Much progress in template chapter.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 03 Oct 2006 13:03:42 -0700 |
parents | 53427f786a0f |
children | 5b80c922ebdd |
comparison
equal
deleted
inserted
replaced
82:1279bc11dfdf | 83:b476081a9c04 |
---|---|
127 print >> rcfp, "username = Bryan O'Sullivan <bos@serpentine.com>" | 127 print >> rcfp, "username = Bryan O'Sullivan <bos@serpentine.com>" |
128 | 128 |
129 rcfile = os.path.join(tmpdir, '.bashrc') | 129 rcfile = os.path.join(tmpdir, '.bashrc') |
130 rcfp = open(rcfile, 'w') | 130 rcfp = open(rcfile, 'w') |
131 print >> rcfp, 'PS1="%s"' % self.prompt | 131 print >> rcfp, 'PS1="%s"' % self.prompt |
132 print >> rcfp, 'PS2="%s"' % self.prompt | |
132 print >> rcfp, 'unset HISTFILE' | 133 print >> rcfp, 'unset HISTFILE' |
133 print >> rcfp, 'export EXAMPLE_DIR="%s"' % os.getcwd() | 134 print >> rcfp, 'export EXAMPLE_DIR="%s"' % os.getcwd() |
134 print >> rcfp, 'export LANG=C' | 135 print >> rcfp, 'export LANG=C' |
135 print >> rcfp, 'export LC_ALL=C' | 136 print >> rcfp, 'export LC_ALL=C' |
136 print >> rcfp, 'export TZ=GMT' | 137 print >> rcfp, 'export TZ=GMT' |