update 0.6.6

This commit is contained in:
utahta
2010-12-07 16:16:19 +09:00
parent 2b19c65dce
commit 7b2ae023bf
8 changed files with 39 additions and 24 deletions
+1 -11
View File
@@ -186,7 +186,7 @@ def untar_file(filename, location):
tar.close()
def unpack_downloadfile(content_type, download_file, target_dir):
logger.info("Extracting %s" % os.path.basename(download_file))
logger.info("Extracting %s into %s" % (os.path.basename(download_file), target_dir))
if is_gzip(content_type, download_file):
untar_file(download_file, target_dir)
else:
@@ -202,16 +202,6 @@ def get_current_python_path():
else:
return None
def write_current(path):
fp = open(PATH_ETC_CURRENT, 'w')
fp.write('PATH_PYTHONBREW="%s"\n' % (path))
fp.close()
def write_temp(path):
fp = open(PATH_ETC_TEMP, 'w')
fp.write('PATH_PYTHONBREW="%s"\n' % (path))
fp.close()
def path_to_fileurl(path):
path = os.path.normcase(os.path.abspath(path))
url = urllib.quote(path)