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):