Fix Windows compatibility with multithreading

This commit is contained in:
Maxim Martynov 2021-07-20 02:23:47 +03:00
parent 6612545110
commit 744b7e5097
No known key found for this signature in database
GPG Key ID: D8A099DCE20C5C60
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ import pywintypes
from win32com.shell import shell, shellcon
from .IFileOperationProgressSink import CreateSink
pythoncom.CoInitialize()
def send2trash(paths):
if not isinstance(paths, list):