forked from VimPlug/jedi
A small buildout script refactoring.
This commit is contained in:
@@ -203,8 +203,8 @@ def sys_path_with_modifications(evaluator, module_context):
|
||||
|
||||
result = _check_module(module_context)
|
||||
result += _detect_django_path(path)
|
||||
for buildout_script in _get_buildout_scripts(path):
|
||||
for path in _get_paths_from_buildout_script(evaluator, buildout_script):
|
||||
for buildout_script_path in _get_buildout_script_paths(path):
|
||||
for path in _get_paths_from_buildout_script(evaluator, buildout_script_path):
|
||||
buildout_script_paths.add(path)
|
||||
# cleanup, back to old directory
|
||||
os.chdir(curdir)
|
||||
@@ -262,7 +262,7 @@ def _detect_django_path(module_path):
|
||||
return result
|
||||
|
||||
|
||||
def _get_buildout_scripts(module_path):
|
||||
def _get_buildout_script_paths(module_path):
|
||||
"""
|
||||
if there is a 'buildout.cfg' file in one of the parent directories of the
|
||||
given module it will return a list of all files in the buildout bin
|
||||
|
||||
Reference in New Issue
Block a user