mirror of
https://github.com/arsenetar/send2trash.git
synced 2025-05-08 01:39:51 +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 win32com.shell import shell, shellcon
|
||||||
from .IFileOperationProgressSink import CreateSink
|
from .IFileOperationProgressSink import CreateSink
|
||||||
|
|
||||||
|
pythoncom.CoInitialize()
|
||||||
|
|
||||||
|
|
||||||
def send2trash(paths):
|
def send2trash(paths):
|
||||||
if not isinstance(paths, list):
|
if not isinstance(paths, list):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user