Changeset 266
- Timestamp:
- 06/10/05 13:26:37
- Files:
-
- branches/ticket-177/cherrypy/test/test.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/ticket-177/cherrypy/test/test.py
r264 r266 29 29 import time 30 30 import sys 31 import os 31 import os, os.path 32 32 import unittest 33 33 … … 126 126 127 127 def main(): 128 # Place our current directory's parent (cherrypy/) at the beginning 129 # of sys.path, so that all imports are from our current directory. 130 localDir = os.path.dirname(__file__) 131 curpath = os.path.normpath(os.path.join(os.getcwd(), localDir)) 132 sys.path.insert(0, os.path.normpath(os.path.join(curpath, '../../'))) 133 128 134 print "Python version used to run this test script:", sys.version.split()[0] 129 135 try:

