From: Grant E. <gr...@vi...> - 2007-08-27 20:25:36
|
On 2007-08-27, Grant Edwards <gr...@vi...> wrote: > I've been beating my head against the wall for days trying to > convince py2exe to include two trees of data files with my > application. Using os.walk() and packages, package_dir, and > package_data keywowrds I've managed to get the desired files > into the 'build' directory, but then they don't end up in the > 'dist' directory. > > How do I get a tree of data files into the 'dist' directory? Since getting distutils/py2exe to copy a tree of files is like pulling hens' teeth, is there any reason not to just do this after I call setup() in my setup.py program? setup( yadda, yadda) for d in datadirs: shutil.copytree(d,os.path.join('dist',d)) -- Grant Edwards grante Yow! Let's all show human at CONCERN for REVERAND MOON's visi.com legal difficulties!! |