[py-svn] r57442 - py/trunk/py/bin
hpk at codespeak.net
hpk at codespeak.net
Mon Aug 18 20:03:00 CEST 2008
Author: hpk
Date: Mon Aug 18 20:02:56 2008
New Revision: 57442
Modified:
py/trunk/py/bin/py.lookup
Log:
robustify. this can also happen to get exectued while being in another version of the py lib.
Modified: py/trunk/py/bin/py.lookup
==============================================================================
--- py/trunk/py/bin/py.lookup (original)
+++ py/trunk/py/bin/py.lookup Mon Aug 18 20:02:56 2008
@@ -10,7 +10,10 @@
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()
More information about the pytest-commit
mailing list