()
| 65 | return dataFolder |
| 66 | |
| 67 | def configInit(): |
| 68 | BMConfigParser().add_section('bitmessagesettings') |
| 69 | BMConfigParser().set('bitmessagesettings', 'port', '8444') #Sets the bitmessage port to stop the warning about the api not properly being setup. This is in the event that the keys.dat is in a different directory or is created locally to connect to a machine remotely. |
| 70 | BMConfigParser().set('bitmessagesettings','apienabled','true') #Sets apienabled to true in keys.dat |
| 71 | |
| 72 | with open(keysName, 'wb') as configfile: |
| 73 | BMConfigParser().write(configfile) |
| 74 | |
| 75 | print '\n ' + str(keysName) + ' Initalized in the same directory as daemon.py' |
| 76 | print ' You will now need to configure the ' + str(keysName) + ' file.\n' |
| 77 | |
| 78 | def apiInit(apiEnabled): |
| 79 | global usrPrompt |
no test coverage detected