[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:
parent
a20731b111
commit
3fafeacdcb
|
@ -10,7 +10,10 @@ prepended."""
|
||||||
import sys, os
|
import sys, os
|
||||||
sys.path.insert(0, os.path.dirname(__file__))
|
sys.path.insert(0, os.path.dirname(__file__))
|
||||||
from _findpy import py
|
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
|
import re
|
||||||
|
|
||||||
curdir = py.path.local()
|
curdir = py.path.local()
|
||||||
|
|
Loading…
Reference in New Issue