| Server IP : 103.243.232.44 / Your IP : 216.73.216.69 Web Server : LiteSpeed System : Linux server17213-10344.hostycare.online 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64 User : iamakash ( 1400) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib64/gedit/plugins/externaltools/__pycache__/ |
Upload File : |
a
A�T`c � @ s� d dl Z d dlmZmZ ddlT G dd� d�ZG dd� d�ZG d d
� d
e�ZG dd� de�ZG d
d� de�Z G dd� de�Z
G dd� de�ZdS )� N)�Gio�Gedit� )�*c @ s e Zd ZdZdd� Zdd� ZdS )�
FileLookupz�
This class is responsible for looking up files given a part or the whole
path of a real file. The lookup is delegated to providers wich use
different methods of trying to find the real file.
c C sR g | _ | j �t� � | j �t|�� | j �t� � | j �t� � | j �t� � d S �N)� providers�append�AbsoluteFileLookupProvider�BrowserRootFileLookupProvider�CwdFileLookupProvider�%OpenDocumentRelPathFileLookupProvider�OpenDocumentFileLookupProvider��self�window� r �4/usr/lib64/gedit/plugins/externaltools/filelookup.py�__init__ s zFileLookup.__init__c C s* d}| j D ]}|�|�}|dur
q&q
|S )z�
Tries to find a file specified by the path parameter. It delegates to
different lookup providers and the first match is returned. If no file
was found then None is returned.
path -- the path to find
N)r �lookup)r �pathZ
found_fileZproviderr r r r '