mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
add darwin check to common
This commit is contained in:
parent
ce191efc54
commit
87e77565fc
1 changed files with 6 additions and 0 deletions
|
@ -358,3 +358,9 @@ def pythonize(var):
|
|||
if isinstance(var, klass):
|
||||
return klass(var)
|
||||
return var
|
||||
|
||||
def osx_check():
|
||||
if platform.system() in ("Darwin"):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
|
Loading…
Add table
Reference in a new issue