(self, gpghome, verbose=False, interactive=False)
Create GnuPG instance
Create GnuPG instance
Create GnuPG instance
def __init__(self, gpghome, verbose=False, interactive=False):
        """Create GnuPG instance"""
        if (not os.path.exists(gpghome)):
            os.mkdir(gpghome)
            # Make sure only the owner has permissions to read, write, and
            # execute the GPG home directory
            os.chmod(gpghome, stat.S_IRWXU)

        self.interactive = interactive
        self.gpghome = gpghome
        self.passphrase = None

        # Create GPG object and fetch the list of current private keys
        self.gpg = gnupg.GPG(verbose=verbose, gnupghome=gpghome)
def __init__ ( self , gpghome , verbose = False , interactive = False ) : if ( not os . path . exists ( gpghome ) ) : os . mkdir ( gpghome ) # Make sure only the owner has permissions to read, write, and # execute the GPG home directory os . chmod ( gpghome , stat . S_IRWXU ) self . interactive = interactive self . gpghome = gpghome self . passphrase = None # Create GPG object and fetch the list of current private keys self . gpg = gnupg . GPG ( verbose = verbose , gnupghome = gpghome )