From 48df976bcd9fe05cc92d0b8b584286f4d3c50c30 Mon Sep 17 00:00:00 2001 From: Teodor Szente Date: Mon, 2 Jan 2017 00:16:55 +0200 Subject: Move get_browserhtml_path to command_base #14815 Remove unused import of find_dep_path_newest #14815 Move get_browserhtml_path top along with find_dep_path_newest #14815 --- python/servo/package_commands.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'python/servo/package_commands.py') diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py index 64536fa24db..1c31c9fddd0 100644 --- a/python/servo/package_commands.py +++ b/python/servo/package_commands.py @@ -36,8 +36,9 @@ from servo.command_base import ( CommandBase, is_macosx, is_windows, + get_browserhtml_path, ) -from servo.post_build_commands import find_dep_path_newest +from servo.command_base import find_dep_path_newest def delete(path): @@ -123,13 +124,6 @@ def change_prefs(resources_path, platform): delete(package_prefs_path) -def get_browserhtml_path(binary_path): - browserhtml_path = find_dep_path_newest('browserhtml', binary_path) - if browserhtml_path: - return path.join(browserhtml_path, "out") - sys.exit("Could not find browserhtml package; perhaps you haven't built Servo.") - - @CommandProvider class PackageCommands(CommandBase): @Command('package', -- cgit v1.2.3