def getCurrentFilePath(view):
    window = view.window()
    views = window.views()

    if view not in views:
        view = window.active_view()

    return view.file_name()
dataset/ETHPy150Open gepd/Deviot/libs/Paths.py/getCurrentFilePath/original