From 8cad800172ceaff65390fad0be17069c0b17f8b5 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Tue, 31 Mar 2015 14:37:53 -0700 Subject: [PATCH] add packages directory from requests package to python import path --- wakatime/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wakatime/base.py b/wakatime/base.py index 71b2a90..58dc9ea 100644 --- a/wakatime/base.py +++ b/wakatime/base.py @@ -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