[Spambayes-checkins] spambayes/spambayes/languages/es_AR .cvsignore, NONE, 1.1 __init__.py, NONE, 1.1

Tony Meyer anadelonbrin at users.sourceforge.net
Thu Apr 7 06:13:03 CEST 2005


Update of /cvsroot/spambayes/spambayes/spambayes/languages/es_AR
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6633/spambayes/languages/es_AR

Added Files:
	.cvsignore __init__.py 
Log Message:
Everything works much nicer if the languages files are inside the spambayes package,
 so move them there (there is basically no CVS history for these files, anyway). 
 Apart from the .mo files, the rest are modules that can be imported.

--- NEW FILE: .cvsignore ---
*.pyc
*.pyo

--- NEW FILE: __init__.py ---
"""Design-time __init__.py for resourcepackage

This is the scanning version of __init__.py for your
resource modules. You replace it with a blank or doc-only
init when ready to release.
"""
try:
    __file__
except NameError:
    pass
else:
    import os
    if os.path.splitext(os.path.basename( __file__ ))[0] == "__init__":
        try:
            from resourcepackage import package, defaultgenerators
            generators = defaultgenerators.generators.copy()

            ### CUSTOMISATION POINT
            ## import specialised generators here, such as for wxPython
            #from resourcepackage import wxgenerators
            #generators.update( wxgenerators.generators )
        except ImportError:
            pass
        else:
            package = package.Package(
                    packageName = __name__,
                    directory = os.path.dirname( os.path.abspath(__file__) ),
                    generators = generators,
            )
            package.scan(
                    ### CUSTOMISATION POINT
                    ## force true -> always re-loads from external files, otherwise
                    ## only reloads if the file is newer than the generated .py file.
                    # force = 1,
            )



More information about the Spambayes-checkins mailing list