CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
_soft.cpython-310.pyc20 linesDownload Raw Back to __pycache__
1o

2��Yi��@szddlmZddlZddlZddlmZddlmZmZddl	m3Z4ddlmZddl
mZmZGd	d5�d6e�Zd7gZdS)�)�annotationsN)�suppress)�EACCES�EEXIST)�Path�)�BaseFileLock)�ensure_directory_exists�raise_on_not_writable_filec@s$eZdZdZd	dd�Zd	dd�ZdS)8�SoftFileLockz.Simply watches the existence of the lock file.�return�Nonec9Cs�t|j�t|j�tjtjBtjBtjB}zt�|j||j	j10�}Wn*tyL}z|jt
ks:|jtkr9tjdksA�WYd}~dSWYd}~dSd}~ww||j	_dS)N�win32)r11�	lock_filer	�os�O_WRONLY�O_CREAT�O_EXCL�O_TRUNC�open�_context�mode�OSError�errnorr�sys�platform�lock_file_fd)�self�flags�file_handler�	exception�r!�xE:\DocsHouse\542 percep lab latest\PerceptionLab\PerceptionLab_Portable\python_embed\Lib\site-packages\filelock/_soft.py�_acquires*1213����14���zSoftFileLock._acquirecCsb|jjdusJ�t�|jj�d|j_tt��t|j���Wd�dS1s*wYdS)N)	rrr�closerrrr�unlink)rr!r!r"�_release%s15"�zSoftFileLock._releaseN)rr
)�__name__�16__module__�__qualname__�__doc__r#r&r!r!r!r"r
s17r)�18__future__rrr�19contextlibrrrr�pathlibrZ_apirZ_utilr	r20r�__all__r!r!r!r"�<module>s!�
Aluode/PerceptionLabPortable · CoolFace