pythoncom coinitialize (#1102)

pull/1106/head
Kaalleen 2021-03-24 19:54:02 +01:00 zatwierdzone przez GitHub
rodzic 61dedc2721
commit 7f8e9412ab
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -25,8 +25,11 @@ def palettes():
if sys.platform == "win32":
# If we try to just use shutil.copy it says the operation requires elevation.
def copy_files(files, dest):
import pythoncom
import winutils
pythoncom.CoInitialize()
if not os.path.exists(dest):
os.makedirs(dest)