Do not print warning on windows

This commit is contained in:
Matthieu Gautier 2020-05-26 13:52:37 +02:00
parent 82500c545b
commit 48986d0a89
1 changed files with 0 additions and 9 deletions

View File

@ -37,15 +37,6 @@ class NeutralEnv:
def detect_platform(self): def detect_platform(self):
_platform = platform.system() _platform = platform.system()
self.distname = _platform self.distname = _platform
if _platform == "Windows":
print(
"ERROR: kiwix-build is not intented to run on Windows platform.\n"
"It should probably not work, but well, you still can have a try.",
file=sys.stderr,
)
cont = input("Do you want to continue ? [y/N]")
if cont.lower() != "y":
sys.exit(0)
if _platform == "Linux": if _platform == "Linux":
self.distname = distro.id() self.distname = distro.id()
if self.distname == "ubuntu": if self.distname == "ubuntu":