From 6f342beba3d9844ae246d340b4f15bc17944524e Mon Sep 17 00:00:00 2001 From: Pablo Silva Date: Sun, 6 Nov 2016 20:04:59 -0800 Subject: [PATCH] Find the distributed encrypt and hashing binaries on their project directory --- pokemongo_bot/__init__.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pokemongo_bot/__init__.py b/pokemongo_bot/__init__.py index d5bef163f7..24244f21fd 100644 --- a/pokemongo_bot/__init__.py +++ b/pokemongo_bot/__init__.py @@ -980,13 +980,13 @@ def get_encryption_lib(self): if _platform == "Windows" or _platform == "win32": # Check if we are on 32 or 64 bit if sys.maxsize > 2**32: - file_name = 'encrypt64.dll' + file_name = 'src/pgoapi/pgoapi/lib/encrypt64.dll' else: - file_name = 'encrypt32.dll' + file_name = 'src/pgoapi/pgoapi/lib/encrypt32.dll' if _platform.lower() == "darwin": - file_name= 'libencrypt-osx-64.so' + file_name= 'src/pgoapi/pgoapi/lib/libencrypt-osx-64.so' if _platform.lower() == "linux" or _platform.lower() == "linux2": - file_name = 'libniantichash-linux-x86-64.so' + file_name = 'src/pgoapi/pgoapi/lib/libniantichash-linux-x86-64.so' if self.config.encrypt_location == '': path = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) else: @@ -1007,13 +1007,13 @@ def get_hash_lib(self): if _platform == "Windows" or _platform == "win32": # Check if we are on 32 or 64 bit if sys.maxsize > 2**32: - file_name = 'niantichash64.dll' + file_name = 'src/pgoapi/pgoapi/lib/niantichash64.dll' else: - file_name = 'niantichash32.dll' + file_name = 'src/pgoapi/pgoapi/lib/niantichash32.dll' if _platform.lower() == "darwin": - file_name= 'libniantichash-osx-64.so' + file_name= 'src/pgoapi/pgoapi/lib/libniantichash-osx-64.so' if _platform.lower() == "linux" or _platform.lower() == "linux2": - file_name = 'libniantichash-linux-x86-64.so' + file_name = 'src/pgoapi/pgoapi/lib/libniantichash-linux-x86-64.so' if self.config.encrypt_location == '': path = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) else: