add packages directory from requests package to python import path
This commit is contained in:
parent
ba49749285
commit
8cad800172
1 changed files with 2 additions and 1 deletions
|
@ -24,8 +24,9 @@ try:
|
|||
except ImportError:
|
||||
import configparser
|
||||
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), 'packages'))
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), 'packages', 'requests', 'packages'))
|
||||
|
||||
from .__about__ import __version__
|
||||
from .compat import u, open, is_py3
|
||||
|
|
Loading…
Reference in a new issue