Skip to content

Commit f58efdb

Browse files
committed
feat: import winshell nur unter Windows, um plattformabhängige Abhängigkeiten zu optimieren
1 parent 07c9915 commit f58efdb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

installer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
global winshell
12
import os
23
import zipfile
34
import shutil
@@ -6,7 +7,8 @@
67
import stat
78
import platform
89
import sys
9-
import winshell
10+
if platform.system() == "Windows":
11+
import winshell
1012

1113
# === CONFIGURATION ===
1214
TARGET_DIR = os.path.expanduser("~/Documents/mc")

0 commit comments

Comments
 (0)