mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-07 02:10:23 +00:00
perf: add compatibility for macOS environment
This commit is contained in:
@@ -417,3 +417,7 @@ def distinct(seq, key=None):
|
||||
seen.add(k)
|
||||
result.append(item)
|
||||
return result
|
||||
|
||||
|
||||
def is_macos():
|
||||
return platform.system() == 'Darwin'
|
||||
|
Reference in New Issue
Block a user