return False
return bool(val)
-def chdir_to_production():
- # XXX: Can't use deploy; maybe should stringify constant
- # .wizard/pending?
- if os.path.exists(".wizard/pending"):
- newdir = open(".wizard/pending").read().strip()
- logging.warning("Detected production copy; changing directory to %s", newdir)
- os.chdir(newdir)
-
class ChangeDirectory(object):
"""
Context for temporarily changing the working directory.