Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Commit

Permalink
improve Armory support on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
gurnec committed Aug 17, 2017
1 parent 9d28ff9 commit a1a41a5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions btcrecover/btcrpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# (all optional futures for 2.7)
from __future__ import print_function, absolute_import, division, unicode_literals

__version__ = "0.17.4"
__version__ = "0.17.5"
__ordering_version__ = b"0.6.4" # must be updated whenever password ordering changes

import sys, argparse, itertools, string, re, multiprocessing, signal, os, cPickle, gc, \
Expand Down Expand Up @@ -307,7 +307,13 @@ def add_armory_library_path():
elif sys.platform.startswith("linux"):
sys.path.extend(("/usr/local/lib/armory", "/usr/lib/armory"))
elif sys.platform == "darwin":
sys.path.append("/Applications/Armory.app/Contents/MacOS/py/usr/lib/armory")
import glob
sys.path.extend((
"/Applications/Armory.app/Contents/MacOS/py/usr/local/lib/armory",
"/Applications/Armory.app/Contents/MacOS/py/usr/lib/armory",
"/Applications/Armory.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages"))
sys.path.extend(glob.iglob(
"/Applications/Armory.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/*.egg"))
is_armory_path_added = True

is_armory_loaded = False
Expand Down

0 comments on commit a1a41a5

Please sign in to comment.