Did you try killing all instances of explorer.exe instead of rebooting? That might do the trick and it&#39;s faster.<br><br><div class="gmail_quote">On Sun, Jun 28, 2009 at 9:10 AM, Gertjan Klein <span dir="ltr">&lt;<a href="mailto:gklein@xs4all.nl">gklein@xs4all.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I am trying to write a shell context menu handler, based on the example<br>
I found in Lib\site-packages\win32comext\shell\demos\servers. My<br>
ultimate goal is to have a single top-level menu, with a number of<br>
submenu entries determined at runtime. (I want to make a launcher for<br>
command prompts, so I can open a command prompt at a given directory<br>
with appropriate settings for python: path, C compiler, etc.)<br>
<br>
Anyway, I have noticed that once I register the shell extension,<br>
unregistering, changing the code, and reregistering doesn&#39;t work: I get<br>
the old code. On top of that, I have managed to mess up the code so the<br>
message box no longer appears when I click the menu item. I need to find<br>
a way to debug my code!<br>
<br>
So, two questions:<br>
<br>
1) Is it possible to completely unload the shell extension, so that<br>
registering it again gets me the newer version? I&#39;d rather not reboot<br>
after every code change.<br>
<br>
2) I see print statements in the source code, but I have no idea where<br>
they go; I checked the event log, but they are not there. Are they<br>
logged anywhere? If not, why are they there to begin with?<br>
<br>
Any other tip on how to effectively debug this stuff would be most<br>
welcome as well.<br>
<br>
Regards,<br>
Gertjan.<br>
<br>
<br>
<br>
_______________________________________________<br>
python-win32 mailing list<br>
<a href="mailto:python-win32@python.org">python-win32@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-win32" target="_blank">http://mail.python.org/mailman/listinfo/python-win32</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>HONEY: I want to… put some powder on my nose.<br>GEORGE: Martha, won’t you show her where we keep the euphemism?<br>