Skip to content

Commit

Permalink
Merge pull request #64 from certifi/alex-patch-1
Browse files Browse the repository at this point in the history
Use a more expressive API for getting the dir a path is in
  • Loading branch information
Lukasa committed Jun 6, 2017
2 parents c90099d + de1810b commit a7c3fc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions certifi/core.py
Expand Up @@ -19,7 +19,7 @@ class DeprecatedBundleWarning(DeprecationWarning):


def where():
f = os.path.split(__file__)[0]
f = os.path.dirname(__file__)

return os.path.join(f, 'cacert.pem')

Expand All @@ -29,7 +29,7 @@ def old_where():
"The weak security bundle is being deprecated.",
DeprecatedBundleWarning
)
f = os.path.split(__file__)[0]
f = os.path.dirname(__file__)
return os.path.join(f, 'weak.pem')

if __name__ == '__main__':
Expand Down

0 comments on commit a7c3fc3

Please sign in to comment.