use homedir instead of gnupghome argument

This commit is contained in:
Kevin Froman 2018-01-15 15:21:32 -06:00
parent 46b3fd01e5
commit c1217b1d44
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B

View File

@ -37,7 +37,7 @@ class Core:
''' Generate the main PGP key for our client. Should not be done often.
Uses own PGP home folder in the data/ directory. '''
# Generate main pgp key
gpg = gnupg.GPG(gnupghome='data/pgp/')
gpg = gnupg.GPG(homedir='data/pgp/')
input_data = gpg.gen_key_input(key_type="RSA", key_length=2048, name_real='anon', name_comment='Onionr key', name_email='anon@onionr')
key = gpg.gen_key(input_data)
return
@ -147,4 +147,4 @@ class Core:
c.execute('INSERT into commands (command, data, date) values (?, ?, ?)', t)
conn.commit()
conn.close()
return
return