diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2021-03-24 19:54:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-24 19:54:02 +0100 |
| commit | 7f8e9412ab65634eea001ce92190cca1eefce4f9 (patch) | |
| tree | dcd5ecf5e13e11c290bdf98415fb6848b41e25d1 | |
| parent | 61dedc27214e69f73598e7f45e032421940565f0 (diff) | |
pythoncom coinitialize (#1102)
| -rw-r--r-- | lib/api/install.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |
