Re: [python-win32] %TEMP% directory

2008-01-08 Thread le dahut
No it is not, it is a fresh installed XP, and the same problem occurs on undreds of machines running XP and 2k. But I forgot to precise that once the session is opened and the desktop is completely loaded, %TEMP% points to the correct directory (C:\Doc Settings\user\...\temp). This strange

Re: [python-win32] %TEMP% directory

2008-01-08 Thread Tim Johnson
Actually I that's the normal behavior. The TEMP environment variable is loaded by your user profile, but %TEMP% points to %WINDIR%\TEMP by default if it isn't set explicitly. You can test this by running 'runas /noprofile /user:some_user cmd', %TEMP% will point to %WINDIR%\TEMP. Whatever

[python-win32] pywintypes Error

2008-01-08 Thread Antony Joseph
Hi, Can anyone help me , what the problem ? I am running this code in windows xp and outlook also installed in my machine. from win32com.client import Dispatch s=Dispatch('Mapi.Session') Traceback (most recent call last): File stdin, line 1, in module File

Re: [python-win32] %TEMP% directory

2008-01-08 Thread le dahut
Thank you for this enlightenment. I've other question but I'll create another topic to keep things clear. Tim Johnson a écrit : Actually I that's the normal behavior. The TEMP environment variable is loaded by your user profile, but %TEMP% points to %WINDIR%\TEMP by default if it isn't set

Re: [python-win32] pywintypes Error

2008-01-08 Thread Graeme Glass
On Jan 8, 2008 11:20 AM, Antony Joseph [EMAIL PROTECTED] wrote: Hi, Can anyone help me , what the problem ? I am running this code in windows xp and outlook also installed in my machine. from win32com.client import Dispatch s=Dispatch('Mapi.Session ') Traceback (most recent call last):

Re: [python-win32] Regarding COM server and exe

2008-01-08 Thread Tejovathi P
I am trying to create the obj in VB in the same manner, ie Set Obj = CreateObject(sample.lib) Strangely, the non exe version of the COM server works fine and I am able to access the public functions in VB application. Problem comes with the EXE version of the COM server, VB application jus hangs

[python-win32] Regarding COM server and exe

2008-01-08 Thread Tejovathi P
Hi All, I have a Python COM server. I need to deploy it on various sytems. When I run the COM server from python its showing an output Registered : sample.lib If I try to use the COM obj from a VB client like: obj = CreateObject(sample.lib) Its working fine without any errors Now I am trying

Re: [python-win32] Regarding COM server and exe

2008-01-08 Thread Tejovathi P
Here is my sample COM server and py2exe setup file *testCOM.py* import win32com.client import os.path import shutil from win32api import Sleep import string import os import sys import pythoncom class FirstEx: _reg_clsid_ = {A6DE9DF8-5EBF-48E6-889E-C71CB84CFF2C} pythoncom.frozen = 1

[python-win32] ISensLogon COM Object

2008-01-08 Thread le dahut
After crawling this mailing list and googling for this I can't find how to use it in python. I'm a COM object newbe, I've read some examples but don't understand it really yet. Does a guru have a magic answer ? ___ python-win32 mailing list

Re: [python-win32] ISensLogon COM Object

2008-01-08 Thread Tim Roberts
le dahut wrote: After crawling this mailing list and googling for this I can't find how to use it in python. I'm a COM object newbe, I've read some examples but don't understand it really yet. Does a guru have a magic answer ? ISensLogon is not a COM object. Rather, it is an interface

Re: [python-win32] ActiveState Python + Cygwin Query

2008-01-08 Thread Reedick, Andrew
Check the environment variables: OS=Windows_NT OSTYPE=cygwin From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tennis Smith Sent: Tuesday, January 08, 2008 1:08 PM To: python-win32@python.org Subject: [python-win32] ActiveState Python + Cygwin

[python-win32] ActiveState Python + Cygwin Query

2008-01-08 Thread Tennis Smith
Hi, I have 2 questions concerning this combination. 1) Since ActiveState uses win32 path names and cygwin uses linux path names, there are lots of occasions when files can't be found. There are multiple ways (I understand) that this can be reconciled, but what is considered the most

[python-win32] Impersonation and Threads

2008-01-08 Thread Matt Herbert (matherbe)
Hey all, Is there a way to make impersonation follow threads? Given this simple example: import win32api import win32security import win32con from threading import Thread class Test(Thread): def run(self): print Username (in thread): , win32api.GetUserName() print Username (before

Re: [python-win32] ActiveState Python + Cygwin Query

2008-01-08 Thread Tennis Smith
Great! Thanks. Now, how do you get ActiveState Python to work with the cygwin paths? -T From: Reedick, Andrew [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 12:30 PM To: Tennis Smith; python-win32@python.org Subject: RE: [python-win32] ActiveState Python + Cygwin Query

Re: [python-win32] ActiveState Python + Cygwin Query

2008-01-08 Thread Reedick, Andrew
What exactly is the problem that you're seeing? Cygwin accepts c:/some/where/file.xt, c:\\some\\where\\file.txt, 'c:\some\where\file.txt', /cygdrive/c/some/where/file.txt, and so on. From: Tennis Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 4:24 PM To: Reedick,

Re: [python-win32] Impersonation and Threads

2008-01-08 Thread Tim Roberts
Matt Herbert (matherbe) wrote: Is there a way to make impersonation follow threads? What operating system are you running? On XP SP2 and later, a new thread should inherit the impersonation token of the calling thread, unless the caller passes a specific security descriptor into

Re: [python-win32] ActiveState Python + Cygwin Query

2008-01-08 Thread Trent Mick
Tennis Smith wrote: Now, how do you get ActiveState Python to work with the cygwin paths? What Andrew said: What exactly is the problem that you’re seeing? Cygwin accepts c:/some/where/file.xt, c:\\some\\where\\file.txt, ‘c:\some\where\file.txt’, /cygdrive/c/some/where/file.txt, and so

Re: [python-win32] Impersonation and Threads

2008-01-08 Thread Matt Herbert (matherbe)
-Original Message- Tim Roberts wrote: Matt Herbert (matherbe) wrote: Is there a way to make impersonation follow threads? What operating system are you running? On XP SP2 and later, a new thread should inherit the impersonation token of the calling thread, unless the caller

Re: [python-win32] Impersonation and Threads

2008-01-08 Thread Stephen George
Hi, Not an answer to this thread but a related win32 authorization question? Does windows OS have a standard dialog box I can call from python that queries the username/password, and returns a token? I'd like not to have to worry about other peoples plain text passwords being in variables in