home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.6)
-
- from __future__ import with_statement
- import os.path as os
- from path import path
- EXTENSIONS = [
- '.py',
- '.cpp',
- '.c',
- '.h',
- '.sip']
- blacklist = [
- 'ext/src/generated']
- blacklist = [ os.path.normpath(b) for b in blacklist ]
-
- def blacklisted(f):
- f = os.path.normpath(f)
- for b in blacklist:
- if b in f:
- return True
-
-
-
- def generate_fil_file(filpath = 'app.fil', dirs = None, extensions = None):
- if dirs is None:
- dirs = [
- '../src']
-
- if extensions is None:
- extensions = EXTENSIONS
-
-
- try:
- appfile = _[1]
- for dir in dirs:
- for file in path(dir).walkfiles():
- f = file.normcase()
- for ext in extensions:
- if f.endswith(os.path.normcase(ext)):
- if not blacklisted(f):
- appfile.write(file.relpath() + '\n')
-
- blacklisted(f)
-
-
- finally:
- pass
-
-
-
- def main():
- generate_fil_file()
-
-