| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/IPython/utils/__pycache__/ |
Upload File : |
�
}�e�. � �" � d Z ddlZddlZddlZddlZddlZddlZddlmZ ej � Z
d� Zej dk( rd� Z
nd� Z
d� Zd � Zd
� Zddedefd
�Z G d� de� Zddefd�Zd� Zd� Zd� Zd� Zd� Zd� Zd� ZdZd� Zd� Zdd�Z y)z
Utilities for path handling.
� N)�systemc � � t j j | � xr$ t j | t j � S )zBWhether `path` is a directory, to which the user has write access.)�os�path�isdir�access�W_OK�r s �4/usr/lib/python3/dist-packages/IPython/utils/path.py�
_writable_dirr s) � �
�7�7�=�=���;�2�9�9�T�2�7�7�#;�;� �win32c �< � ddl }|j j j }|j
|j
|j g|_ |j d� } || |d� }|dk( s|dkD r| S |j S # t $ r}t d� |�d}~ww xY w)z�Get a long path name (expand ~) on Windows using ctypes.
Examples
--------
>>> get_long_path_name('c:\\docume~1')
'c:\\Documents and Settings'
r Nz2you need to have ctypes installed for this to worki )
�ctypes�ImportError�windll�kernel32�GetLongPathNameW� c_wchar_p�c_uint�argtypes�create_unicode_buffer�value)r r �e�_GetLongPathName�buf�rvs r �_get_long_path_namer s� � � [�� "�=�=�1�1�B�B��%+�%5�%5�v�7G�7G��M�M�%��!� �*�*�3�/��
�d�C��
-��
��7�b�3�h��K��9�9��� � [��R�S�YZ�Z�� [�s �B � B�
B�Bc � � | S )zDummy no-op.� r
s r r r 5 s � ��r
c � � t | � S )z�Expand a path into its long form.
On Windows this expands any ~ in the paths. On other platforms, it is
a null operation.
)r r
s r �get_long_path_namer"