If we called ``--continue`` inside a production copy, check if
:file:`.wizard/pending` exists and change to that directory if so.
"""
- # XXX: Can't use deploy; maybe should stringify constants?
- 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)
+ util.chdir_to_production()
def resumeState(self):
self.temp_wc_dir = os.getcwd()
self.wc = deploy.WorkingCopy(".")