[Spambayes-checkins] spambayes/windows/py2exe setup_all.py,1.1,1.2
Mark Hammond
mhammond at users.sourceforge.net
Fri Sep 12 06:00:04 EDT 2003
Update of /cvsroot/spambayes/spambayes/windows/py2exe
In directory sc8-pr-cvs1:/tmp/cvs-serv30773
Modified Files:
setup_all.py
Log Message:
Add pop3proxy_tray as a GUI program. Add the icons to the executables, and
sys.path hacks for the new world order.
Index: setup_all.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/windows/py2exe/setup_all.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** setup_all.py 29 Aug 2003 14:44:08 -0000 1.1
--- setup_all.py 12 Sep 2003 12:00:02 -0000 1.2
***************
*** 4,21 ****
import sys, os
sb_top_dir = os.path.abspath(os.path.dirname(os.path.join(__file__, "../../../..")))
! try:
! import classifier
! except ImportError:
! sys.path.append(sb_top_dir)
!
! try:
! import pop3proxy_service
! except ImportError:
! sys.path.append(os.path.join(sb_top_dir, "windows"))
!
! try:
! import addin
! except ImportError:
! sys.path.append(os.path.join(sb_top_dir, "Outlook2000"))
# ModuleFinder can't handle runtime changes to __path__, but win32com uses them,
--- 4,11 ----
import sys, os
sb_top_dir = os.path.abspath(os.path.dirname(os.path.join(__file__, "../../../..")))
! sys.path.append(sb_top_dir)
! sys.path.append(os.path.join(sb_top_dir, "windows"))
! sys.path.append(os.path.join(sb_top_dir, "scripts"))
! sys.path.append(os.path.join(sb_top_dir, "Outlook2000"))
# ModuleFinder can't handle runtime changes to __path__, but win32com uses them,
***************
*** 41,44 ****
--- 31,37 ----
class py2exe_options:
bitmap_resources = [(1000, os.path.join(sb_top_dir, r"Outlook2000\dialogs\resources\sblogo.bmp"))]
+ icon_resources = [(1000, os.path.join(sb_top_dir, r"windows\resources\sb-started.ico")),
+ (1010, os.path.join(sb_top_dir, r"windows\resources\sb-stopped.ico")),
+ ]
packages = "spambayes.resources"
excludes = "win32ui,pywin" # pywin is a package, and still seems to be included.
***************
*** 48,52 ****
if len(sys.argv)==1:
sys.argv = [sys.argv[0], "py2exe"]
!
setup(name="SpamBayes",
packages = ["spambayes.resources"],
--- 41,45 ----
if len(sys.argv)==1:
sys.argv = [sys.argv[0], "py2exe"]
!
setup(name="SpamBayes",
packages = ["spambayes.resources"],
***************
*** 56,59 ****
service=["pop3proxy_service"],
# A console exe for debugging
! console=[os.path.join(sb_top_dir, "pop3proxy.py")],
)
--- 49,54 ----
service=["pop3proxy_service"],
# A console exe for debugging
! console=[os.path.join(sb_top_dir, "scripts", "sb_server.py")],
! # The taskbar
! windows=[os.path.join(sb_top_dir, "windows", "pop3proxy_tray.py")],
)
More information about the Spambayes-checkins
mailing list