diff options
author | David Manthey <david.manthey@kitware.com> | 2018-07-11 22:05:21 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2018-07-12 07:35:21 +0530 |
commit | 1d619f5abc126de169bed7582ff5a2c09b182284 (patch) | |
tree | 3c5210c868a91f5a326f1592f3d758488dfd62ac /src/bcrypt | |
parent | 05992f6a7c18b8c832b51aee44d1052749ef52af (diff) | |
download | py-bcrypt-git-1d619f5abc126de169bed7582ff5a2c09b182284.tar.gz |
Use a relative import. (#147)
Use an application relative import when importing _bcrypt. This allows
the package to work even in odd locations, such as
`pip install --target . bcrypt` (rather than in the site-packages or
user packages directory).
Diffstat (limited to 'src/bcrypt')
-rw-r--r-- | src/bcrypt/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bcrypt/__init__.py b/src/bcrypt/__init__.py index 5d47fa8..073c788 100644 --- a/src/bcrypt/__init__.py +++ b/src/bcrypt/__init__.py @@ -22,8 +22,7 @@ import warnings import six -from bcrypt import _bcrypt - +from . import _bcrypt from .__about__ import ( __author__, __copyright__, __email__, __license__, __summary__, __title__, __uri__, __version__, |