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…
Reference in New Issue