提交 019565ed 编写于 作者: J Jannis Leidel

Raise error if download directory does not exist

上级 27b3f81d
......@@ -1886,6 +1886,11 @@ class RequirementSet(object):
self.download_dir = os.path.expanduser(self.download_dir)
if os.path.exists(self.download_dir):
return True
else:
logger.fatal('Could not find download directory')
raise InstallationError(
"Could not find or access download directory '%s'"
% display_path(self.download_dir))
return False
def get_requirement(self, project_name):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册