Commit b379cc5a authored by cduvall@chromium.org's avatar cduvall@chromium.org

Extensions Docs Server: Fix preview.py

The preview server now imports fakes like integration_test. This works for all
pages except for the apps samples, but that requires a larger fix than this.

BUG=142530

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=151594

Review URL: https://chromiumcodereview.appspot.com/10832299

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151651 0039d316-1c4b-4281-b951-d872f2087c98
parent 811680ec
...@@ -32,6 +32,8 @@ class FakeSubversionServer(object): ...@@ -32,6 +32,8 @@ class FakeSubversionServer(object):
html = ['<html>Revision 000000'] html = ['<html>Revision 000000']
try: try:
for f in os.listdir(path): for f in os.listdir(path):
if f.startswith('.'):
continue
if os.path.isdir(os.path.join(path, f)): if os.path.isdir(os.path.join(path, f)):
html.append('<a>' + f + '/</a>') html.append('<a>' + f + '/</a>')
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment