Changes between Version 19 and Version 20 of PythonGuidelines


Ignore:
Timestamp:
Dec 14, 2010 1:54:19 PM (9 years ago)
Author:
dpranke@chromium.org
Comment:

add a note adding WebKitTools/Scripts to your PYTHONPATH

Legend:

Unmodified
Added
Removed
Modified
  • PythonGuidelines

    v19 v20  
    1717 * Most of the Python code is in [http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/webkitpy WebKitTools/Scripts/webkitpy].
    1818 * [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.
    1920 * 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).
    2021 * 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.