extensions_paths.py revision 5c02ac1a9c1b504631c0a3d2b6e737b5d738bae1
1# Copyright 2013 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5from posixpath import join
6
7
8# Extensions-related paths within the Chromium repository.
9
10APPS = 'apps/common/'
11EXTENSIONS = 'extensions/common/'
12CHROME_EXTENSIONS = 'chrome/common/extensions/'
13
14APPS_API = join(APPS, 'api/')
15EXTENSIONS_API = join(EXTENSIONS, 'api/')
16CHROME_API = join(CHROME_EXTENSIONS, 'api/')
17
18# Note: This determines search order when APIs are resolved in the filesystem.
19API_PATHS = (
20  CHROME_API,
21  EXTENSIONS_API,
22  APPS_API,
23)
24
25DOCS = join(CHROME_EXTENSIONS, 'docs/')
26
27EXAMPLES = join(DOCS, 'examples/')
28SERVER2 = join(DOCS, 'server2/')
29STATIC_DOCS = join(DOCS, 'static/')
30TEMPLATES = join(DOCS, 'templates/')
31
32APP_YAML = join(SERVER2, 'app.yaml')
33
34ARTICLES_TEMPLATES = join(TEMPLATES, 'articles/')
35INTROS_TEMPLATES = join(TEMPLATES, 'intros/')
36JSON_TEMPLATES = join(TEMPLATES, 'json/')
37PRIVATE_TEMPLATES = join(TEMPLATES, 'private/')
38PUBLIC_TEMPLATES = join(TEMPLATES, 'public/')
39
40CONTENT_PROVIDERS = join(JSON_TEMPLATES, 'content_providers.json')
41
42LOCAL_DEBUG_DIR = join(SERVER2, 'local_debug/')
43LOCAL_GCS_DIR = join(LOCAL_DEBUG_DIR, 'gcs/')
44LOCAL_GCS_DEBUG_CONF = join(LOCAL_DEBUG_DIR, 'gcs_debug.conf')
45