From 6f8d4776794beb624057c273d14a3c8ab8f9ba2e Mon Sep 17 00:00:00 2001 From: David Halter Date: Sun, 4 Nov 2012 01:20:57 +0100 Subject: [PATCH] sys.path hack to be a fully compliant py3k library --- jedi/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jedi/__init__.py b/jedi/__init__.py index c07d6eeb..21b79943 100644 --- a/jedi/__init__.py +++ b/jedi/__init__.py @@ -1,2 +1,8 @@ +import sys + +# python imports are hell sometimes. Especially the combination of relative +# imports and circular imports... Just avoid it: +sys.path.insert(0, __path__[0]) + from .api import Script, NotFoundError, set_debug_function from . import settings