[python-win32] Questions about deploying COM server via py2exe

2011-08-18 Thread Kevin Walzer
Hi all, I'm working on a Tkinter app that is being deployed to Windows via py2exe for wrapping and InnoSetup for its installer. In order to provide a similar scripting capability to the app that is present in its Mac version, I've made the app a COM server using the examples from python-win32 code

Re: [python-win32] Questions about deploying COM server via py2exe

2011-08-19 Thread Kevin Walzer
For registering the com server we use innosetup with the following line [Run] Filename: "{app}\openclerk.exe"; Parameters: "/regserver"; WorkingDir: "{app}" ; StatusMsg: "Registering openclerk.exe ..." --- I’ve used a variation of this techinque, it seems to work fine. Thanks. usually you get

Re: [python-win32] Questions about deploying COM server via py2exe

2011-08-20 Thread Kevin Walzer
Hi Matteo, Thanks for the suggestions. I have integrated the win32trace module into my frozen app. Here is my final code: from quickwho_main import quickwhoApp import time import tempfile from win32com.server.exception import COMException import winerror import win32com.server.register import w

[python-win32] win32api / py23xe / com server

2011-08-28 Thread Kevin Walzer
Hello all, I’ve continued my efforts to create a COM server with Python and have found success by implementing one without the overhead of a GUI event loop (my Tkinter app didn’t work as a COM server). I’ve created the server and confirmed that it works when run from Python, but I am not able t

Re: [python-win32] win32api / py23xe / com server

2011-08-29 Thread Kevin Walzer
I somehow got the component to load, finally. One trick I did use was absolute import of the win32api module, which seemed to help. However, I can’t pinpoint exactly what I did wrong vs. what I did right. That’s a bit frustrating, but no worries. ___ p

[python-win32] AppData directory on Windows?

2011-09-01 Thread Kevin Walzer
Hi, I’m getting feedback from a Windows user that says my Tkinter app won’t write data to an app temporary directory. Here’s my code: sys.stderr=open(os.path.join(os.path.expanduser('~'), 'Application Data', 'QuickWho', 'QuickWho_errors.txt'), 'w') And here’s the error message: Traceback (mos

Re: [python-win32] AppData directory on Windows?

2011-09-01 Thread Kevin Walzer
-Original Message- This might help...? http://timgolden.me.uk/python/winshell.html - The os.environ['appdata'] bit worked fine for me, thanks for suggesting it. That winshell package looks quite nice--I will check it out. --Kevin ___