def edit_import_line(importline):
    filename = find_source_file_from_import_line(importline)
    if filename:
        ed = get_editor()
        return run_config(ed, filename)
    else:
        print("Could not find source for {0}.".format(importline.strip()), file=sys.stderr)
Find the module referenced by the import source line and open in editor.
dataset/ETHPy150Open kdart/pycopia/core/pycopia/devhelpers.py/edit_import_line