From 7f8e9412ab65634eea001ce92190cca1eefce4f9 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Wed, 24 Mar 2021 19:54:02 +0100 Subject: pythoncom coinitialize (#1102) --- lib/api/install.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/api/install.py') diff --git a/lib/api/install.py b/lib/api/install.py index f52233fb..a0d5bba9 100644 --- a/lib/api/install.py +++ b/lib/api/install.py @@ -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) -- cgit v1.2.3