Mercurial > hg > carton
comparison carton.py @ 30:0b9c124f128b
note another TODO
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 11 Jul 2011 11:01:48 -0700 |
parents | 533a4f9718d9 |
children | 8fef97a25925 |
comparison
equal
deleted
inserted
replaced
29:533a4f9718d9 | 30:0b9c124f128b |
---|---|
260 carton = file(filename).read().encode('zlib').encode('base64') | 260 carton = file(filename).read().encode('zlib').encode('base64') |
261 except NameError: | 261 except NameError: |
262 pass | 262 pass |
263 | 263 |
264 # interpolate "template" -> output | 264 # interpolate "template" -> output |
265 # TODO: add the ability to include a post-deployment script | |
265 outfile = options.outfile | 266 outfile = options.outfile |
266 if outfile is None: | 267 if outfile is None: |
267 outfile = environment + '.py' | 268 outfile = environment + '.py' |
268 variables = {'VIRTUAL_ENV': VIRTUAL_ENV.encode('zlib').encode('base64'), | 269 variables = {'VIRTUAL_ENV': VIRTUAL_ENV.encode('zlib').encode('base64'), |
269 'ENV': environment, | 270 'ENV': environment, |