Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: pkg/docgen/bin/dartdoc.py

Issue 78713004: Expose exported classes as well. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/docgen/bin/dartdoc.py
diff --git a/pkg/docgen/bin/dartdoc.py b/pkg/docgen/bin/dartdoc.py
index 09da94853c5d53ecbace56d23c291659a0ee8479..c822cba29f5f4c67b2cca3fc4a42ab1d3dc8ebbf 100644
--- a/pkg/docgen/bin/dartdoc.py
+++ b/pkg/docgen/bin/dartdoc.py
@@ -28,6 +28,7 @@ PACKAGE_ROOT = join(dirname(dirname(dirname(DART_EXECUTABLE[:-(len('dart'))]))),
'packages/')
EXCLUDED_PACKAGES = ['browser', 'html_import', 'mutation_observer',
'pkg.xcodeproj', 'shadow_dom']
+APPSERVER_EXECUTABLE = 'dev_appserver.py'
def SetPackageRoot(path):
@@ -53,8 +54,8 @@ def ParseArgs():
'SDK and all packages in the dart repository in JSON.',
default='--json')
parser.add_option('--gae-sdk',
- help='The path to the Google App Engine SDK. Defaults to the top level '
- 'dart directory.', default=PACKAGE_ROOT)
+ help='The path to the Google App Engine SDK. Defaults to finding the '
+ 'script in the PATH.', default='')
options, _ = parser.parse_args()
SetPackageRoot(options.pkg_root)
return options
@@ -145,9 +146,14 @@ def main():
os.chdir('dartdoc-viewer/client/')
subprocess.call([PUB, 'install'])
subprocess.call([DART_EXECUTABLE, 'deploy.dart'])
- server = subprocess.Popen(['python',
- join(abspath(join(dirname(__file__), options.gae_sdk)),
- 'dev_appserver.py'), '..'])
+ if options.gae_sdk == '':
+ server = subprocess.Popen(' '.join([APPSERVER_EXECUTABLE, '..']),
+ shell=True)
+ else:
+ path_to_gae = options.gae_sdk
+ if not path_to_gae.endswith(APPSERVER_EXECUTABLE):
+ path_to_gae = join(path_to_gae, APPSERVER_EXECUTABLE)
+ server = subprocess.Popen(join(['python', path_to_gae, '..']))
print (
"\nPoint your browser to the address of the 'default' server below.")
raw_input("Press <RETURN> to terminate the server.\n\n")
« no previous file with comments | « pkg/docgen/README.md ('k') | pkg/docgen/lib/docgen.dart » ('j') | pkg/docgen/lib/docgen.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698