Changes between Version 19 and Version 20 of PythonGuidelines
- Timestamp:
- Dec 14, 2010, 1:54:19 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PythonGuidelines
v19 v20 17 17 * Most of the Python code is in [http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/webkitpy WebKitTools/Scripts/webkitpy]. 18 18 * [http://trac.webkit.org/browser/trunk/WebKitTools/Scripts WebKitTools/Scripts] also contains end-user Python scripts (which usually import from webkitpy). 19 * Code is written to assume that `.../WebKitTools/Scripts` is in your `PYTHONPATH`. `test-webkitpy` handles this internally, but you may find it useful to add the setting to your environment. 19 20 * Generally, we try to keep as much of the Python code in webkitpy as possible since this allows the code to be organized more nicely (for unit tests to be in companion files, etc). 20 21 * Unit test files are in correspondence with modules. For example, if module.py is the name of a module, its unit test file would be module_unittest.py and would lie in the same directory.