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

Issue 23534063: Make SchemaLoader independent of current working directory. (Closed)

Created:
7 years, 3 months ago by msimonides
Modified:
7 years, 2 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Make SchemaLoader independent of current working directory. The SchemaLoader looks for schema files in the current directory. This isn't very robust and may cause problems for other products than Chromium if they run the script from a GYP file in another directory. The SchemaLoader is supplied two arguments now: the path to API files relative to the root path (for use in #includes) and the regular path to API files (for file access). BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225977

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use two separate paths #

Total comments: 6

Patch Set 3 : Code review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -12 lines) Patch
M tools/json_schema_compiler/compiler.py View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M tools/json_schema_compiler/schema_loader.py View 1 2 2 chunks +20 lines, -7 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
msimonides
7 years, 3 months ago (2013-09-16 08:43:10 UTC) #1
msimonides
7 years, 3 months ago (2013-09-19 11:23:52 UTC) #2
not at google - send to devlin
https://codereview.chromium.org/23534063/diff/1/tools/json_schema_compiler/schema_loader.py File tools/json_schema_compiler/schema_loader.py (right): https://codereview.chromium.org/23534063/diff/1/tools/json_schema_compiler/schema_loader.py#newcode47 tools/json_schema_compiler/schema_loader.py:47: schema_path = os.path.join(self._root, self._api_path, schema); can the caller just ...
7 years, 3 months ago (2013-09-19 15:43:34 UTC) #3
msimonides
https://codereview.chromium.org/23534063/diff/1/tools/json_schema_compiler/schema_loader.py File tools/json_schema_compiler/schema_loader.py (right): https://codereview.chromium.org/23534063/diff/1/tools/json_schema_compiler/schema_loader.py#newcode47 tools/json_schema_compiler/schema_loader.py:47: schema_path = os.path.join(self._root, self._api_path, schema); On 2013/09/19 15:43:34, kalman ...
7 years, 3 months ago (2013-09-20 11:32:00 UTC) #4
not at google - send to devlin
https://codereview.chromium.org/23534063/diff/1/tools/json_schema_compiler/schema_loader.py File tools/json_schema_compiler/schema_loader.py (right): https://codereview.chromium.org/23534063/diff/1/tools/json_schema_compiler/schema_loader.py#newcode47 tools/json_schema_compiler/schema_loader.py:47: schema_path = os.path.join(self._root, self._api_path, schema); On 2013/09/20 11:32:01, msimonides ...
7 years, 3 months ago (2013-09-20 20:37:57 UTC) #5
msimonides
On 2013/09/20 20:37:57, kalman wrote: > https://codereview.chromium.org/23534063/diff/1/tools/json_schema_compiler/schema_loader.py > File tools/json_schema_compiler/schema_loader.py (right): > > https://codereview.chromium.org/23534063/diff/1/tools/json_schema_compiler/schema_loader.py#newcode47 > ...
7 years, 3 months ago (2013-09-23 07:20:42 UTC) #6
msimonides
7 years, 3 months ago (2013-09-23 07:22:21 UTC) #7
msimonides
ping :)
7 years, 2 months ago (2013-09-27 07:18:01 UTC) #8
not at google - send to devlin
oops, sorry! you can ping me earlier. lgtm with those comments. https://codereview.chromium.org/23534063/diff/8001/tools/json_schema_compiler/compiler.py File tools/json_schema_compiler/compiler.py (right): ...
7 years, 2 months ago (2013-09-27 16:10:19 UTC) #9
msimonides
https://codereview.chromium.org/23534063/diff/8001/tools/json_schema_compiler/compiler.py File tools/json_schema_compiler/compiler.py (right): https://codereview.chromium.org/23534063/diff/8001/tools/json_schema_compiler/compiler.py#newcode50 tools/json_schema_compiler/compiler.py:50: api_def = schema_loader.LoadSchema(short_filename + schema_extension) On 2013/09/27 16:10:20, kalman ...
7 years, 2 months ago (2013-09-30 07:18:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msimonides@opera.com/23534063/16001
7 years, 2 months ago (2013-09-30 07:19:55 UTC) #11
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 2 months ago (2013-09-30 09:22:43 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msimonides@opera.com/23534063/16001
7 years, 2 months ago (2013-09-30 10:23:51 UTC) #13
commit-bot: I haz the power
7 years, 2 months ago (2013-09-30 15:29:35 UTC) #14
Message was sent while issue was closed.
Change committed as 225977

Powered by Google App Engine
This is Rietveld 408576698