Mercurial > hg > fetch
comparison fetch.py @ 44:b98c8a8a881b
import tempfile
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 15 Nov 2011 14:27:23 -0800 |
parents | 9e6c0f9725e3 |
children | 87c22bbcda2b |
comparison
equal
deleted
inserted
replaced
43:9e6c0f9725e3 | 44:b98c8a8a881b |
---|---|
2 | 2 |
3 """ | 3 """ |
4 fetch stuff from the interwebs | 4 fetch stuff from the interwebs |
5 """ | 5 """ |
6 | 6 |
7 import optparse | |
7 import os | 8 import os |
8 import shutil | 9 import shutil |
9 import sys | 10 import sys |
10 import optparse | 11 import tempfile |
11 | 12 |
12 __all__ = ['Fetcher', 'Fetch', 'main'] | 13 __all__ = ['Fetcher', 'Fetch', 'main'] |
13 | 14 |
14 def which(executable, path=os.environ['PATH']): | 15 def which(executable, path=os.environ['PATH']): |
15 """python equivalent of which; should really be in the stdlib""" | 16 """python equivalent of which; should really be in the stdlib""" |