| Index: lib/dom/scripts/fremontcutbuilder.py
|
| diff --git a/lib/dom/scripts/fremontcutbuilder.py b/lib/dom/scripts/fremontcutbuilder.py
|
| index d7ad39dc6bfc596f31407c1b4ed271b2c0a0e298..f351466b4d4abe9f75261ac31ac6d0143129077f 100755
|
| --- a/lib/dom/scripts/fremontcutbuilder.py
|
| +++ b/lib/dom/scripts/fremontcutbuilder.py
|
| @@ -11,13 +11,13 @@ import os.path
|
| import tempfile
|
| import sys
|
|
|
| -def build_database(idl_list_file_name):
|
| +def build_database(idl_list_file_name, database_dir):
|
| """This code reconstructs the FremontCut IDL database from W3C,
|
| WebKit and Dart IDL files."""
|
| current_dir = os.path.dirname(__file__)
|
| logging.config.fileConfig(os.path.join(current_dir, "logging.conf"))
|
|
|
| - db = database.Database(os.path.join(current_dir, '..', 'database'))
|
| + db = database.Database(database_dir)
|
|
|
| # Delete all existing IDLs in the DB.
|
| db.Delete()
|
| @@ -160,6 +160,8 @@ def build_database(idl_list_file_name):
|
| db.Save()
|
|
|
| def main():
|
| + current_dir = os.path.dirname(__file__)
|
| +
|
| webkit_dirs = [
|
| 'Modules/speech',
|
| 'Modules/indexeddb',
|
| @@ -188,8 +190,8 @@ def main():
|
|
|
| (idl_list_file, idl_list_file_name) = tempfile.mkstemp()
|
|
|
| - webcore_dir = os.path.join(os.path.dirname(__file__), '..', '..', '..',
|
| - 'third_party', 'WebCore')
|
| + webcore_dir = os.path.join(current_dir, '..', '..', '..',
|
| + 'third_party', 'WebCore')
|
| if not os.path.exists(webcore_dir):
|
| raise RuntimeError('directory not found: %s' % webcore_dir)
|
|
|
| @@ -207,7 +209,8 @@ def main():
|
|
|
| os.close(idl_list_file)
|
|
|
| - return build_database(idl_list_file_name)
|
| + database_dir = os.path.join(current_dir, '..', 'database')
|
| + return build_database(idl_list_file_name, database_dir)
|
|
|
| if __name__ == '__main__':
|
| sys.exit(main())
|
|
|