()
| 16 | storeConfigFilesInSameDirectoryAsProgramByDefault = False # The user may de-select Portable Mode in the settings if they want the config files to stay in the application data folder. |
| 17 | |
| 18 | def _loadTrustedPeer(): |
| 19 | try: |
| 20 | trustedPeer = BMConfigParser().get('bitmessagesettings', 'trustedpeer') |
| 21 | except ConfigParser.Error: |
| 22 | # This probably means the trusted peer wasn't specified so we |
| 23 | # can just leave it as None |
| 24 | return |
| 25 | |
| 26 | host, port = trustedPeer.split(':') |
| 27 | state.trustedPeer = state.Peer(host, int(port)) |
| 28 | |
| 29 | def loadConfig(): |
| 30 | if state.appdata: |
no test coverage detected