File: runtests.py

package info (click to toggle)
pycha 0.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 580 kB
  • ctags: 434
  • sloc: python: 3,642; makefile: 67
file content (16 lines) | stat: -rw-r--r-- 409 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import sys
from os.path import join
from distutils.sysconfig import get_python_lib
from site import addsitedir

root = sys.argv.pop(1)
site_packages = get_python_lib()

_path = sys.path[:]
sys.path[:] = []
addsitedir(join(root, site_packages[1:]))
addsitedir(join(root, site_packages[1:].replace("dist-packages", "site-packages")))
sys.path.extend(_path)
sys.path.append("tests")

execfile("tests/runner.py")