diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-01 14:13:49 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-01 14:13:49 +0000 |
commit | 0a776e7cd05d5a37c18328b44750a298197f2201 (patch) | |
tree | f6ce23c4341852b3d86d105e8101568f4461431d /chrome/tools | |
parent | 9171e6fc93203f70449cd43021b5638e30891352 (diff) | |
download | chromium_src-0a776e7cd05d5a37c18328b44750a298197f2201.zip chromium_src-0a776e7cd05d5a37c18328b44750a298197f2201.tar.gz chromium_src-0a776e7cd05d5a37c18328b44750a298197f2201.tar.bz2 |
Added the printing of a warning when we get an Exception while trying to import our google.* python packages so that the user can tell why it happens, and how to fix it.
Patch from mad@google.com
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6140 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools')
-rw-r--r-- | chrome/tools/test/smoketests.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome/tools/test/smoketests.py b/chrome/tools/test/smoketests.py index 6045452..94140b4 100644 --- a/chrome/tools/test/smoketests.py +++ b/chrome/tools/test/smoketests.py @@ -28,10 +28,14 @@ import subprocess import sys import time -import google.httpd_utils -import google.path_utils -import google.process_utils - +try: + import google.httpd_utils + import google.path_utils + import google.process_utils +except ImportError: + print ("\n>> You must have your local path of trunk/src/tools/python added" + " to your PYTHONPATH.<<\n") + raise # Keep a global httpd object so it can be killed in the event of errors. _httpd = None |