1
0
forked from VimPlug/jedi

A small buildout script refactoring.

This commit is contained in:
Dave Halter
2017-03-23 18:39:19 +01:00
committed by Andy Lee
parent 5aa379945e
commit fb4cff8ef9
2 changed files with 5 additions and 5 deletions

View File

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