Krzysztof Foltman wrote:
> It may be possible to use Python's os.walk() instead of adding them
> explicitly in the source file:
[snip]
>
> On the other hand, it won't work well if there are junk files in the
> data dir it will install them too, so it may be useful to add some
> filtering for filenames. Depends what's considered worse - copying junk
> or forgetting to add some important files to the list.
Yeah, that would work. I've also seen people suggest things like
glob('data/*').
Since Sebastian mentioned it, I was curious to see how Ardour did things. They
distribute it with SConscript files for each major directory. Sometimes they
glob('*.png') to get the list... and sometimes they list out the files by hand.
that makes it easy to work around issues like what you mentioned on a
case-by-case basis.
Peace,
Gabriel
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel