Mercurial > hg > PaInt
comparison paint/package.py @ 30:fe5f282dca9b
use correct dotted path
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 30 Mar 2012 11:47:28 -0700 |
parents | 59524b6d25c0 |
children | 5fb1844db0b2 |
comparison
equal
deleted
inserted
replaced
29:59524b6d25c0 | 30:fe5f282dca9b |
---|---|
198 dirname, filename = pypi.pypi_path(src) | 198 dirname, filename = pypi.pypi_path(src) |
199 | 199 |
200 # make the directory if it doesn't exist | 200 # make the directory if it doesn't exist |
201 subdir = os.path.join(directory, dirname) | 201 subdir = os.path.join(directory, dirname) |
202 if not os.path.exists(subdir): | 202 if not os.path.exists(subdir): |
203 os.path.makedirs(subdir) | 203 os.makedirs(subdir) |
204 assert os.path.isdir(subdir) | 204 assert os.path.isdir(subdir) |
205 | 205 |
206 # move the file | 206 # move the file |
207 shutil.move(src, os.path.join(subdir, filename)) | 207 shutil.move(src, os.path.join(subdir, filename)) |
208 finally: | 208 finally: |