mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-22 12:34:50 +00:00
add darwin check to common
This commit is contained in:
parent
310d1e4e6e
commit
16cc7be912
1 changed files with 6 additions and 0 deletions
|
@ -314,3 +314,9 @@ def is_ip(ip):
|
|||
return True
|
||||
except socket.error:
|
||||
return False
|
||||
|
||||
def osx_check():
|
||||
if platform.system() in ("Darwin"):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
|
Loading…
Add table
Reference in a new issue