~ubuntu-branches/ubuntu/dapper/python-docutils/dapper

« back to all changes in this revision

Viewing changes to test/test_pep/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2005-12-13 13:47:41 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051213134741-fhuh5tq3n346q1oj
Tags: 0.3.9-0.1ubuntu1
Synchronize with Debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import os
2
 
import os.path
3
 
import sys
4
 
 
5
 
sys.path.insert(0, os.path.abspath(os.curdir))
6
 
prev = ''
7
 
while sys.path[0] != prev:
8
 
    try:
9
 
        import DocutilsTestSupport
10
 
        break
11
 
    except ImportError:
12
 
        prev = sys.path[0]
13
 
        sys.path[0] = os.path.dirname(prev)
14
 
sys.path.pop(0)