[svn r57442] robustify. this can also happen to get exectued while being in another version of the py lib.

--HG--
branch : trunk
This commit is contained in:
hpk 2008-08-18 20:02:56 +02:00
parent a20731b111
commit 3fafeacdcb
1 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,10 @@ prepended."""
import sys, os
sys.path.insert(0, os.path.dirname(__file__))
from _findpy import py
from py.__.io.terminalwriter import ansi_print, terminal_width
try:
from py.__.io.terminalwriter import ansi_print, terminal_width
except ImportError:
from py.__.misc.terminal_helper import ansi_print, terminal_width
import re
curdir = py.path.local()