diff options
Diffstat (limited to 'python/servo/post_build_commands.py')
-rw-r--r-- | python/servo/post_build_commands.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py index af5270df007..0a8a553bae7 100644 --- a/python/servo/post_build_commands.py +++ b/python/servo/post_build_commands.py @@ -24,8 +24,9 @@ from mach.decorators import ( from servo.command_base import ( CommandBase, - call, check_call, find_dep_path_newest, + call, check_call, is_windows, is_macosx, set_osmesa_env, + get_browserhtml_path, ) @@ -97,11 +98,7 @@ class PostBuildCommands(CommandBase): args = [self.get_binary_path(release, dev)] if browserhtml: - browserhtml_path = find_dep_path_newest('browserhtml', args[0]) - if browserhtml_path is None: - print("Could not find browserhtml package; perhaps you haven't built Servo.") - return 1 - + browserhtml_path = get_browserhtml_path('browserhtml', args[0]) if is_macosx(): # Enable borderless on OSX args = args + ['-b'] |