File: __init__.py

package info (click to toggle)
python-docutils 0.5-2%2Blenny1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 5,664 kB
  • ctags: 3,475
  • sloc: python: 31,530; lisp: 3,348; sh: 1,966; makefile: 147
file content (14 lines) | stat: -rw-r--r-- 306 bytes parent folder | download | duplicates (59)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import os
import os.path
import sys

sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
prev = ''
while sys.path[0] != prev:
    try:
        import DocutilsTestSupport
        break
    except ImportError:
        prev = sys.path[0]
        sys.path[0] = os.path.dirname(prev)
sys.path.pop(0)