# HG changeset patch # User Jeff Hammel # Date 1379465211 25200 # Node ID 582ffe5e39a046ce8e1e71d7b1221e800247cc2a # Parent 7f442f58558012f341fdb75db8ca528865cb407d paint/package.py diff -r 7f442f585580 -r 582ffe5e39a0 paint/package.py --- a/paint/package.py Tue Sep 17 16:04:05 2013 -0700 +++ b/paint/package.py Tue Sep 17 17:46:51 2013 -0700 @@ -116,7 +116,7 @@ """returns if the filesystem path is an archive""" # TODO: should handle zipfile additionally at least # Ideally, this would be pluggable, etc - return tarfile.is_tarfile(path) + return (not os.path.isdir(path)) and tarfile.is_tarfile(path) def _cleanup(self): if self._tmppath: