mirror of
https://git.deluge-torrent.org/deluge
synced 2025-07-29 20:48:40 +00:00
Fix and clean-up os checking functions
This commit is contained in:
parent
759bb8cc5d
commit
b83ef477e4
2 changed files with 8 additions and 25 deletions
11
setup.py
11
setup.py
|
@ -45,17 +45,10 @@ import platform
|
|||
python_version = platform.python_version()[0:3]
|
||||
|
||||
def windows_check():
|
||||
import platform
|
||||
if platform.system() in ('Windows', 'Microsoft'):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
return platform.system() in ('Windows', 'Microsoft')
|
||||
|
||||
def osx_check():
|
||||
if platform.system() in ("Darwin"):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
return platform.system() == "Darwin"
|
||||
|
||||
# Try to get SVN revision number to append to version
|
||||
revision_string = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue