Skip to content

Commit

Permalink
Find the distributed encrypt and hashing binaries on their project di…
Browse files Browse the repository at this point in the history
…rectory
  • Loading branch information
pablossp committed Nov 7, 2016
1 parent 3df86e0 commit 6f342be
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pokemongo_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 6f342be

Please sign in to comment.