Skip to content

Commit

Permalink
Add cygwin to supported platform and improved log readability (#2948)
Browse files Browse the repository at this point in the history
* Add cygwin to supported platform and improved log readability

* fixed formatting
  • Loading branch information
villish authored and solderzzc committed Aug 8, 2016
1 parent 1fd60e7 commit 7490bf8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pokemongo_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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)
Expand Down

0 comments on commit 7490bf8

Please sign in to comment.