changeset 51:45f7a0f80e6a

correctly call os.path.join
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 15 Nov 2011 15:13:01 -0800
parents 7432e54750a3
children c9f2311dedea
files fetch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/fetch.py	Tue Nov 15 15:10:36 2011 -0800
+++ b/fetch.py	Tue Nov 15 15:13:01 2011 -0800
@@ -191,7 +191,7 @@
             shutil.rmtree(os.path.join(tmpdir, self.vcs_dir))
         path = tmpdir
         if self.subpath:
-            path = os.path.join([tmpdir] + self.subpath)
+            path = os.path.join(*([tmpdir] + self.subpath))
             assert os.path.exists(path), "subpath %s of %s not found" % (os.path.sep.join(self.subpath), self.url)
         if os.path.isdir(path):
             if os.path.exists(dest):