mirror of
https://github.com/arsenetar/send2trash.git
synced 2025-05-07 09:29:48 +00:00
Fix Windows compatibility with multithreading
This commit is contained in:
parent
6612545110
commit
744b7e5097
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user