forked from VimPlug/jedi
virtualenv progress
This commit is contained in:
@@ -2,7 +2,7 @@ import os
|
||||
import sys
|
||||
|
||||
from jedi.evaluate.sys_path import get_venv_path, detect_additional_paths
|
||||
from jedi.cache import underscore_memoization
|
||||
from jedi.cache import memoize_method
|
||||
|
||||
|
||||
class Project(object):
|
||||
@@ -32,7 +32,7 @@ class Project(object):
|
||||
self._evaluator = evaluator
|
||||
|
||||
@property
|
||||
@underscore_memoization
|
||||
@memoize_method
|
||||
def sys_path(self):
|
||||
if self._script_path is None:
|
||||
return self._base_sys_path
|
||||
|
||||
@@ -17,6 +17,7 @@ from __future__ import print_function
|
||||
|
||||
import sys
|
||||
import os
|
||||
from sysconfig import get_config_var
|
||||
|
||||
|
||||
def makepath(*paths):
|
||||
@@ -108,3 +109,8 @@ def addsitedir(sys_path, sitedir, known_paths=None):
|
||||
if reset:
|
||||
known_paths = None
|
||||
return known_paths
|
||||
|
||||
|
||||
def getuserbase():
|
||||
"""Returns the `user base` directory path."""
|
||||
return get_config_var('userbase')
|
||||
|
||||
Reference in New Issue
Block a user