spambayes/windows/py2exe setup_all.py, 1.22, 1.23

"Tony Meyer" <[email protected]>
Newsgroups gmane.mail.spam.spambayes.cvs
Message-ID <[email protected]>
Update of /cvsroot/spambayes/spambayes/windows/py2exe
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12760/windows/py2exe

Modified Files:
	setup_all.py 
Log Message:
Handle the language files.

Index: setup_all.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/windows/py2exe/setup_all.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** setup_all.py	7 Apr 2005 02:19:48 -0000	1.22
--- setup_all.py	7 Apr 2005 04:23:50 -0000	1.23
***************
*** 8,12 ****
  sys.path.append(os.path.join(sb_top_dir, "scripts"))
  sys.path.append(os.path.join(sb_top_dir, "Outlook2000"))
! sys.path.append(os.path.join(sb_top_dir, "Outlook2000/sandbox"))
  
  import spambayes.resources
--- 8,12 ----
  sys.path.append(os.path.join(sb_top_dir, "scripts"))
  sys.path.append(os.path.join(sb_top_dir, "Outlook2000"))
! sys.path.append(os.path.join(sb_top_dir, "Outlook2000", "sandbox"))
  
  import spambayes.resources
***************
*** 36,40 ****
  
  py2exe_options = dict(
!     packages = "spambayes.resources,encodings",
      excludes = "win32ui,pywin,pywin.debugger", # pywin is a package, and still seems to be included.
      includes = "dialogs.resources.dialogs,weakref", # Outlook dynamic dialogs
--- 36,44 ----
  
  py2exe_options = dict(
!     packages = "spambayes.resources,encodings,spambayes.languages," \
!                "spambayes.languages.es,spambayes.languages.es_AR," \
!                "spambayes.languages.fr_FR,spambayes.languages.es.DIALOGS," \
!                "spambayes.languages.es_AR.DIALOGS," \
!                "spambayes.languages.fr_FR.DIALOGS",
      excludes = "win32ui,pywin,pywin.debugger", # pywin is a package, and still seems to be included.
      includes = "dialogs.resources.dialogs,weakref", # Outlook dynamic dialogs
***************
*** 140,144 ****
  
  language_files = []
! languages_root = os.path.join(sb_top_dir, "languages")
  def add_language_files(current_dir):
      files = os.listdir(current_dir)
--- 144,148 ----
  
  language_files = []
! languages_root = os.path.join(sb_top_dir, "spambayes", "languages")
  def add_language_files(current_dir):
      files = os.listdir(current_dir)
***************
*** 148,152 ****
              add_language_files(full_fn)
              continue
!         if os.path.splitext(fn)[1] == ".py":
              dest_name = os.path.join("languages", "%s" %
                                       (full_fn[len(languages_root)+1:],))
--- 152,156 ----
              add_language_files(full_fn)
              continue
!         if os.path.splitext(fn)[1] == ".mo":
              dest_name = os.path.join("languages", "%s" %
                                       (full_fn[len(languages_root)+1:],))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.