def configure(self, options, conf): self.conf = conf enable = getattr(options, 'AppenginePatcher', False) self.enabled = enable if enable: from appenginepatch.aecmd import setup_env setup_env(manage_py_env=True)
def configure(self, options, conf): self.conf = conf enable = getattr(options, "AppenginePatcher", False) self.enabled = enable if enable: from appenginepatch.aecmd import setup_env setup_env(manage_py_env=True)
def __init__(self, enabled=False): super(AppenginePatcher, self).__init__() self.enabled = enabled if not self.enabled: return from appenginepatch.aecmd import setup_env setup_env(manage_py_env=True)