Hello, I'm trying to compile example comes from pywin32 in win32comext\shell\demos\servers\context_menu.py with py2exe. My setup.py describes below. ---------------------------- import time import sys
try: # if this doesn't work, try import modulefinder import py2exe.mf as modulefinder import win32com for p in win32com.__path__[1:]: modulefinder.AddPackagePath("win32com", p) for extra in ["win32com.shell"]: #,"win32com.mapi" __import__(extra) m = sys.modules[extra] for p in m.__path__[1:]: modulefinder.AddPackagePath(extra, p) except ImportError: # no build path setup, no worries. pass from distutils.core import setup import py2exe sys.argv.append("py2exe") setup( console = [{'script':'context_menu.py'}] ) ---------------------------- If I run this context_menu.py from command line then I do right-click, I get what I want. But after I compile run the context_menu.exe, I don't get added menu. What happen? How to fix it? Thank you for helping me. Sincerely, -indrajaya- _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32