From de45c277c10f9824fe4d14196921880f50a226f8 Mon Sep 17 00:00:00 2001 From: David Halter Date: Mon, 7 Jan 2013 20:55:00 +0100 Subject: [PATCH] broke the api again (unintentionally) --- jedi/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jedi/api.py b/jedi/api.py index ef72d33e..bd2b878a 100644 --- a/jedi/api.py +++ b/jedi/api.py @@ -61,7 +61,8 @@ class Script(object): self._module = modules.ModuleWithCursor(source_path, source=self.source, position=self.pos) self._source_path = source_path - self.source_path = os.path.abspath(source_path) + self.source_path = None if source_path is None \ + else os.path.abspath(source_path) debug.speed('init') def __repr__(self):