Don't require or create the log dirs if we're just validating the API.

Fixes an error displayed in the automated builds, plus we don't want
a Makefile messing around with our homedir.
This commit is contained in:
Rob Crittenden 2011-01-14 16:45:37 -05:00 committed by Simo Sorce
parent f8c7afd15c
commit 84ff4ca0f1

View File

@ -385,7 +385,7 @@ class API(DictProxy):
# If logging has already been configured somewhere else (like in the
# installer), don't add handlers or change levels:
if len(log.handlers) > 0:
if len(log.handlers) > 0 or self.env.validate_api:
return
if self.env.debug: