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. ''' Generate the main PGP key for our client. Should not be done often.
Uses own PGP home folder in the data/ directory. ''' Uses own PGP home folder in the data/ directory. '''
# Generate main pgp key # 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') 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) key = gpg.gen_key(input_data)
return return
@ -147,4 +147,4 @@ class Core:
c.execute('INSERT into commands (command, data, date) values (?, ?, ?)', t) c.execute('INSERT into commands (command, data, date) values (?, ?, ?)', t)
conn.commit() conn.commit()
conn.close() conn.close()
return return