forked from VimPlug/jedi
Remove from_executable, were not really using it, yet.
This commit is contained in:
@@ -262,7 +262,7 @@ def get_python_environment(python):
|
||||
raise InvalidPythonEnvironment("Cannot find executable %s." % python)
|
||||
|
||||
|
||||
def create_environment(path, safe=False):
|
||||
def create_environment(path, safe=True):
|
||||
"""
|
||||
Make it possible to create an environment by hand.
|
||||
|
||||
@@ -271,11 +271,6 @@ def create_environment(path, safe=False):
|
||||
return _Environment(path, _get_executable_path(path, safe=safe))
|
||||
|
||||
|
||||
def from_executable(executable):
|
||||
path = os.path.dirname(os.path.dirname(executable))
|
||||
return _Environment(path, executable)
|
||||
|
||||
|
||||
def _get_executable_path(path, safe=True):
|
||||
"""
|
||||
Returns None if it's not actually a virtual env.
|
||||
|
||||
Reference in New Issue
Block a user