| Index: gm/rebaseline_server/compare_rendered_pictures.py
 | 
| diff --git a/gm/rebaseline_server/compare_rendered_pictures.py b/gm/rebaseline_server/compare_rendered_pictures.py
 | 
| index 73d0627ba076bcee10397ab9b4bd93147aa9c29a..75a80d4de2704afc527c2ad7aa1834ac61f4888d 100755
 | 
| --- a/gm/rebaseline_server/compare_rendered_pictures.py
 | 
| +++ b/gm/rebaseline_server/compare_rendered_pictures.py
 | 
| @@ -13,11 +13,26 @@ Compare results of two render_pictures runs.
 | 
|  import logging
 | 
|  import os
 | 
|  import re
 | 
| +import sys
 | 
|  import time
 | 
|  
 | 
|  # Imports from within Skia
 | 
| -import fix_pythonpath  # must do this first
 | 
| -from pyutils import url_utils
 | 
| +#
 | 
| +# TODO(epoger): Once we move the create_filepath_url() function out of
 | 
| +# download_actuals into a shared utility module, we won't need to import
 | 
| +# download_actuals anymore.
 | 
| +#
 | 
| +# We need to add the 'gm' directory, so that we can import gm_json.py within
 | 
| +# that directory.  That script allows us to parse the actual-results.json file
 | 
| +# written out by the GM tool.
 | 
| +# Make sure that the 'gm' dir is in the PYTHONPATH, but add it at the *end*
 | 
| +# so any dirs that are already in the PYTHONPATH will be preferred.
 | 
| +PARENT_DIRECTORY = os.path.dirname(os.path.realpath(__file__))
 | 
| +GM_DIRECTORY = os.path.dirname(PARENT_DIRECTORY)
 | 
| +TRUNK_DIRECTORY = os.path.dirname(GM_DIRECTORY)
 | 
| +if GM_DIRECTORY not in sys.path:
 | 
| +  sys.path.append(GM_DIRECTORY)
 | 
| +import download_actuals
 | 
|  import gm_json
 | 
|  import imagediffdb
 | 
|  import imagepair
 | 
| @@ -59,7 +74,7 @@ class RenderedPicturesComparisons(results.BaseComparisons):
 | 
|      self._image_base_url = image_base_url
 | 
|      self._diff_base_url = (
 | 
|          diff_base_url or
 | 
| -        url_utils.create_filepath_url(generated_images_root))
 | 
| +        download_actuals.create_filepath_url(generated_images_root))
 | 
|      self._load_result_pairs(actuals_root, subdirs)
 | 
|      self._timestamp = int(time.time())
 | 
|      logging.info('Results complete; took %d seconds.' %
 | 
| 
 |