From 6370c242f0e1cb8ec80c7dccc1133cb0d0607bae Mon Sep 17 00:00:00 2001 From: LexManos Date: Wed, 13 Mar 2013 13:11:43 -0700 Subject: [PATCH] OS X's python 2.6.1 has a bug in zipfile.extractall that makes it unzip directories as regular files. So switch to extract --- install/fml.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install/fml.py b/install/fml.py index 279c30a2cb..9681b2896f 100644 --- a/install/fml.py +++ b/install/fml.py @@ -630,7 +630,10 @@ def download_mcp(mcp_dir, fml_dir, version=None): print 'Extracting MCP to \'%s\'' % mcp_dir zf = ZipFile(mcp_zip) - zf.extractall(mcp_dir) + #OS X's python 2.6.1 extractall has a bug in zipfile that makes it unzip directories as regular files. + for path in zf.namelist(): + if not path.endswith('/'): + zf.extract(path, mcp_dir) zf.close() eclipse_dir = os.path.join(mcp_dir, 'eclipse')