Skip to content

Commit

Permalink
Make sure cacert.pem can be found running the code in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
diegobz committed Dec 8, 2015
1 parent 6dfe661 commit ad33b5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion txclib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_base_dir():
"""
if getattr(sys, 'frozen', False):
# we are running in a bundle
basedir = sys._MEIPASS
basedir = os.path.join(sys._MEIPASS, 'txclib')
else:
# we are running in a normal Python environment
basedir = os.path.dirname(os.path.abspath(__file__))
Expand Down
2 changes: 1 addition & 1 deletion txclib/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def user_agent_identifier():

def certs_file():
if platform.system() == 'Windows':
return os.path.join(txclib.utils.get_base_dir(), 'txclib', 'cacert.pem')
return os.path.join(txclib.utils.get_base_dir(), 'cacert.pem')
else:
POSSIBLE_CA_BUNDLE_PATHS = [
# Red Hat, CentOS, Fedora and friends
Expand Down

0 comments on commit ad33b5f

Please sign in to comment.