Re: [python-win32] SystemError: Parent module '__ax_main__' not loaded

2010-08-19 Thread Marc-Andre Belzile
-Original Message- From: Mark Hammond [mailto:skippy.hamm...@gmail.com] Sent: Monday, August 16, 2010 11:40 PM To: Marc-Andre Belzile Cc: python-win32@python.org Subject: Re: [python-win32] SystemError: Parent module '__ax_main__' not loaded On 11/08/2010 5:38 AM, Marc-Andre Belzile

[python-win32] SystemError: Parent module '__ax_main__' not loaded

2010-08-10 Thread Marc-Andre Belzile
Hi, I'm using the Python ActiveX Scripting engine and I'm trying to set some global variables in the engine global space before parsing some .py files. I use this function to set the variables: def set_global_vars(fullpath ): import os globals()['__path__'] =

Re: [python-win32] sys.path and PyWin32 scripting engine

2010-07-20 Thread Marc-Andre Belzile
-win32-bounces+marc-andre.belzile=autodesk@python.org] On Behalf Of Tim Roberts Sent: Monday, July 19, 2010 3:37 PM To: python-win32@python.org Subject: Re: [python-win32] sys.path and PyWin32 scripting engine Marc-Andre Belzile wrote: Is the value of sys.path private for each new scripting

[python-win32] sys.path and PyWin32 scripting engine

2010-07-19 Thread Marc-Andre Belzile
Hi, Is the value of sys.path private for each new scripting engine I create ? Or is it global value ? According to my test results, any new paths added to sys.path from a specific engine seems to be available to others. Is it the expected behavior ? thanks -mab

[python-win32] Boot strap mechanism for ActiveX Python engines

2010-05-04 Thread Marc-Andre Belzile
Hi, I'm trying to execute some python code when a new ActiveX Python engine is instantiated. I thought I could use sitecustomize.py to put my code in but this module seems to get executed only for the first engine created (probably when pythoncomXX.dll is loaded for the first time). Is there

[python-win32] How to get the pywin version number?

2010-04-15 Thread Marc-Andre Belzile
Hi, what is the recommended way of getting the pywin version number from python ? I'm currently using this snipet: import os import distutils import distutils.sysconfig site_packages = distutils.sysconfig.get_python_lib(plat_specific=1) build_no = open(os.path.join(site_packages,

[python-win32] Python AX script engine issue

2010-04-07 Thread Marc-Andre Belzile
Hello, My ActiveX object leaks when I submit it as a named item to the Python AX script engine (IActiveScript::AddNamedItem) with my AX site application. I'm using build 214 on a Vista 64 bit machine. The leak is not there though with build 212, the regression seems to have been introduced

[python-win32] Array of 64 bit int

2009-08-11 Thread Marc-Andre Belzile
Hi, This is probably not the right list for this kind of question but is it possible to build an array of 64 bit int with Python ? thanks for your help! -mab ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] Array of 64 bit int

2009-08-11 Thread Marc-Andre Belzile
- From: python-win32-bounces+marc-andre.belzile=autodesk@python.org [mailto:python-win32-bounces+marc-andre.belzile=autodesk@python.org] On Behalf Of Tim Roberts Sent: Tuesday, August 11, 2009 2:36 PM To: Python-Win32 List Subject: Re: [python-win32] Array of 64 bit int Marc-Andre

Re: [python-win32] pywin32 build 214 released

2009-08-05 Thread Marc-Andre Belzile
with 214? thanks -mab -Original Message- From: Mark Hammond [mailto:mhamm...@skippinet.com.au] Sent: Tuesday, August 04, 2009 7:25 PM To: Marc-Andre Belzile Cc: Python-win32@python.org Subject: Re: [python-win32] pywin32 build 214 released On 5/08/2009 3:55 AM, Marc-Andre Belzile wrote: Hi

Re: [python-win32] pywin32 build 214 released

2009-08-05 Thread Marc-Andre Belzile
I have the same problem with 3.0. -mab -Original Message- From: Mark Hammond [mailto:mhamm...@skippinet.com.au] Sent: Wednesday, August 05, 2009 10:13 AM To: Marc-Andre Belzile Cc: Python-win32@python.org Subject: Re: [python-win32] pywin32 build 214 released On 5/08/2009 11:06 PM

Re: [python-win32] pywin32 build 214 released

2009-08-04 Thread Marc-Andre Belzile
Hi, I can't install build 214 (amd64), the installer gives this error message --- Cannot install --- Python version 3.1 required, which was not found in the registry. --- OK --- Is there anything