diff options
Diffstat (limited to 'chrome/common/extensions/docs/server/chromeextensionsdocs.py')
-rw-r--r-- | chrome/common/extensions/docs/server/chromeextensionsdocs.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/common/extensions/docs/server/chromeextensionsdocs.py b/chrome/common/extensions/docs/server/chromeextensionsdocs.py index 9edf5cd..a3778f4 100644 --- a/chrome/common/extensions/docs/server/chromeextensionsdocs.py +++ b/chrome/common/extensions/docs/server/chromeextensionsdocs.py @@ -6,6 +6,7 @@ import cgi import logging import re +import os from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app @@ -43,10 +44,10 @@ DEFAULT_CACHE_TIME = 300 class MainPage(webapp.RequestHandler): # get page from memcache, or else fetch it from src def get(self): - path = self.request.path + path = os.path.realpath(os.path.join('/', self.request.path)) # special path to invoke the unit tests # TODO(nickbaum): is there a less ghetto way to invoke the unit test? - if path == "/test/": + if path == "/test": self.unitTest() return # if root, redirect to index.html |