Added 'startswith()' to each OS
This commit is contained in:
parent
c5ceb6b880
commit
476ca6d42f
@ -858,12 +858,12 @@ def expand_windows_drive(path):
|
||||
return path
|
||||
|
||||
def is_mac():
|
||||
if sys.platform == 'darwin':
|
||||
if sys.platform.startswith('darwin'):
|
||||
return True
|
||||
return False
|
||||
|
||||
def is_linux():
|
||||
if sys.platform == 'linux' or sys.platform == 'linux2':
|
||||
if sys.platform.startswith('linux'):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user