File: //lib/python3/dist-packages/samba/__pycache__/mdb_util.cpython-310.pyc
o
�/a� � @ s0 d dl Z d dlZd dlZd dlmZ dd� ZdS )� N)�CommandErrorc C s� t �d��t j�}d}|D ]}t j�|d�}t j�|�r d} nq
|s'td��|d| d| g}tj |ddd�}t �
d| |� d S )
z7Copy mdb file using mdb_copy utility and rename it
�PATHF�mdb_copyTzBmdb_copy not found. You may need to install the lmdb-utils packagez-nz%s.copy.mdb)� close_fds�shellN)�os�getenv�split�pathsep�path�join�existsr �
subprocess�
check_call�rename)�file1�file2�dirs�found�d�toolpath�mdb_copy_cmd�status� r �0/usr/lib/python3/dist-packages/samba/mdb_util.pyr s �r )�sambar r �samba.netcmdr r r r r r �<module> s