aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
authorAdam Casey <adamncasey@gmail.com>2016-05-04 14:37:51 +0100
committerUK992 <urbankrajnc92@gmail.com>2016-06-07 14:38:51 +0200
commit64c5c3ee9d0523b65d21d863a6920161ec2d16fd (patch)
tree7c3c93af462263cb8e3ddc4199415694e3694ffe /python/servo/command_base.py
parentbc52617d3351d64cfd1479c5088b591370529f59 (diff)
downloadservo-64c5c3ee9d0523b65d21d863a6920161ec2d16fd.tar.gz
servo-64c5c3ee9d0523b65d21d863a6920161ec2d16fd.zip
Only enable borderless browserhtml window on OSX.
Pass browserhtml path as relative path to avoid a mingw->windows path conversion
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r--python/servo/command_base.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index 4618882627c..66c4a0caa17 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -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