Changeset 332:7e5c67a0041e for config.py
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
config.py
r327 r332 168 168 WSB_IGNORE 169 169 Set wildcard patterns to ignore. If multiple patterns are 170 given, they must be separated with semicolons. Note that 171 whitespace is significant and is treated as part of the 172 respective pattern. 170 given, they must be separated with whitespace. 173 171 174 172 A typical example for WSB_IGNORE might be 175 *.pyc;*.pyo;*/.svn;*.svn/*;*/.hg;*/.hg/*;*.swp 176 (without the leading and trailing whitespace; note also that 177 there's no whitespace before or after the commas). 173 *.pyc *.pyo */.svn *.svn/* */.hg */.hg/* *.swp 178 174 179 175 If both this environment variable and one or more … … 367 363 368 364 Currently, only the ignore patterns are considered, via the 369 environment variable `WSB_IGNORE`. Its value is a comma-365 environment variable `WSB_IGNORE`. Its value is a whitespace- 370 366 separated string of patterns, for example 371 "*.pyc ;*.pyo;*/.svn;*.svn/*;*/.hg;*/.hg/*;*.swp".367 "*.pyc *.pyo */.svn *.svn/* */.hg */.hg/* *.swp". 372 368 """ 373 369 global ignore_patterns 374 370 environ = os.environ 375 371 patterns = environ.get('WSB_IGNORE', "") 376 for pattern in patterns.split( ";"):372 for pattern in patterns.split(): 377 373 ignore_patterns.append(pattern) 378 374