Add site-packages to sys.path
(known_paths, prefixes=None)
| 387 | return sitepackages |
| 388 | |
| 389 | def addsitepackages(known_paths, prefixes=None): |
| 390 | """Add site-packages to sys.path""" |
| 391 | _trace("Processing global site-packages") |
| 392 | for sitedir in getsitepackages(prefixes): |
| 393 | if os.path.isdir(sitedir): |
| 394 | addsitedir(sitedir, known_paths) |
| 395 | |
| 396 | return known_paths |
| 397 | |
| 398 | def setquit(): |
| 399 | """Define new builtins 'quit' and 'exit'. |
no test coverage detected