2008-08-18 23:08:39 +08:00
|
|
|
import py
|
|
|
|
|
|
|
|
pydir = py.path.local(py.__file__).dirpath()
|
|
|
|
mydatadir = py.magic.autopath().dirpath().join("data")
|
|
|
|
|
|
|
|
def getdata():
|
|
|
|
rel = mydatadir.relto(pydir)
|
|
|
|
tmpdir = py.test.ensuretemp(rel.replace(pydir.sep, '_'))
|
|
|
|
mydatadir.copy(tmpdir)
|
|
|
|
return tmpdir
|
2008-09-21 23:15:28 +08:00
|
|
|
|