Kaydet (Commit) b277ee9a authored tarafından paledega's avatar paledega Kaydeden (comit) GitHub

Update util.py

üst 562e7f18
......@@ -71,6 +71,11 @@ class FileError(Error):
class FilePermissionDeniedError(Error):
pass
def wsl_block():
"""Fuck the WSL"""
f=open("/proc/version","r").readline()
if (("Microsoft" in f) or ("WSL" in f)):
exit(1)
def locked(func):
"""
......@@ -1105,6 +1110,11 @@ def get_kernel_option(option):
return args
def wsl_block():
""""Fuck the WSL"""
f=open("/proc/version","r").readline()
if (("Microsoft" in f) or ("WSL" in f)):
exit(1)
def get_cpu_count():
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment