mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Only enable borderless browserhtml window on OSX.
Pass browserhtml path as relative path to avoid a mingw->windows path conversion
This commit is contained in:
parent
bc52617d33
commit
64c5c3ee9d
2 changed files with 19 additions and 2 deletions
|
@ -105,6 +105,15 @@ def check_call(*args, **kwargs):
|
|||
return subprocess.check_call(*args, shell=sys.platform == 'win32', **kwargs)
|
||||
|
||||
|
||||
def is_windows():
|
||||
""" Detect windows, mingw, cygwin """
|
||||
return sys.platform == 'win32' or sys.platform == 'msys' or sys.platform == 'cygwin'
|
||||
|
||||
|
||||
def is_macosx():
|
||||
return sys.platform == 'darwin'
|
||||
|
||||
|
||||
class BuildNotFound(Exception):
|
||||
def __init__(self, message):
|
||||
self.message = message
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue