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:
Adam Casey 2016-05-04 14:37:51 +01:00 committed by UK992
parent bc52617d33
commit 64c5c3ee9d
2 changed files with 19 additions and 2 deletions

View file

@ -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