From 7490bf84cd4328d2b2e29aac06d4d5ca7f720fcb Mon Sep 17 00:00:00 2001 From: villish Date: Sun, 7 Aug 2016 20:20:33 -0700 Subject: [PATCH] Add cygwin to supported platform and improved log readability (#2948) * Add cygwin to supported platform and improved log readability * fixed formatting --- pokemongo_bot/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pokemongo_bot/__init__.py b/pokemongo_bot/__init__.py index bb5578746f..3481a190f2 100644 --- a/pokemongo_bot/__init__.py +++ b/pokemongo_bot/__init__.py @@ -609,7 +609,7 @@ def get_encryption_lib(self): file_name = '' if _platform == "linux" or _platform == "linux2" or _platform == "darwin": file_name = 'encrypt.so' - elif _platform == "Windows" or _platform == "win32": + elif _platform == "Windows" or _platform == "win32" or _platform == "cygwin": # Check if we are on 32 or 64 bit if sys.maxsize > 2**32: file_name = 'encrypt_64.dll' @@ -621,7 +621,8 @@ def get_encryption_lib(self): if not os.path.isfile(full_path): self.logger.error(file_name + ' is not found! Please place it in the bots root directory.') - self.logger.info('Platform: '+ _platform + ' Bot root directory: '+ path) + self.logger.info('Platform: '+ _platform) + self.logger.info('Bot root directory: '+ path) sys.exit(1) else: self.logger.info('Found '+ file_name +'! Platform: ' + _platform + ' Bot root directory: ' + path)