1
0
forked from VimPlug/jedi

Remove from_executable, were not really using it, yet.

This commit is contained in:
Dave Halter
2018-04-14 15:13:02 +02:00
parent 43ab9563e2
commit 9f07e7e352
3 changed files with 5 additions and 12 deletions

View File

@@ -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.