Re: [python-win32] help with parsing email

2008-08-18 Thread Gabriel Genellina
t once you retrieved the email body, it's easy: import re re_number = re.compile(r"NoticeOfapplication/([0-9-_]+)") match = re_number.search(body) if match: print match.group(1) (this matches any numbers plus "-" and "_" aft

Re: [python-win32] help with parsing email

2008-08-18 Thread Gabriel Genellina
passwd = 'mypass' >>>> mailserver = poplib.POP3(mailserver) > Traceback (most recent call last): > File "", line 1, in ? > File "C:\Python24\lib\poplib.py", line 84, in __init__ > for res in socket.getaddrinfo(self.host, self.port, 0, >

Re: [python-win32] help with parsing email

2008-08-18 Thread Gabriel Genellina
passwd = 'mypass' >>>> mailserver = poplib.POP3(mailserver) > Traceback (most recent call last): > File "", line 1, in ? > File "C:\Python24\lib\poplib.py", line 84, in __init__ > for res in socket.getaddrinfo(self.host, self.port, 0, >

[python-win32] Internet Explorer constants

2008-09-05 Thread Gabriel Genellina
e C header files looking for them, but is there some other way? The ExecWB method is documented here http://msdn.microsoft.com/en-us/library/aa752117(VS.85).aspx -- Gabriel Genellina ___ python-win32 mailing list python-win32@python.org http://mail

Re: [python-win32] Internet Explorer constants

2008-09-05 Thread Gabriel Genellina
En Fri, 05 Sep 2008 05:23:01 -0300, Tim Golden <[EMAIL PROTECTED]> escribió: Gabriel Genellina wrote: Hello I want to control Internet Explorer. This is what I have so far: import win32com.client from win32com.client.gencache import EnsureDispatch url = "..." IE

Re: [python-win32] Pythonwin telit

2008-09-19 Thread Gabriel Genellina
hon en castellano: [EMAIL PROTECTED] == http://dir.gmane.org/gmane.comp.python.general.castellano -- Gabriel Genellina ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] service support in 2.6 isn't working

2008-12-30 Thread Gabriel Genellina
hon 2.5 and pywin32 Build 210, it works fine. -- Gabriel Genellina ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Problem in identifying an archived file in Windows

2009-02-25 Thread Gabriel Genellina
"Search for GetFileAttributes at msdn, google or google groups." Click on msdn, the first result is <http://msdn.microsoft.com/en-us/library/aa364944(VS.85).aspx> You apparently are looking for FILE_ATTRIBUTE_ARCHIVE. -- Gabriel Genellina ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] File Time: win32file vs Python ?

2009-07-05 Thread Gabriel Genellina
archivos 21.468 bytes 0 dirs 204.499.968 bytes libres To restore the same date/time, I have to use: from pywintypes import Time creationTime, accessTime, writeTime = [Time(timegm(localtime(int(t for t in GetFileTime(fh

Re: [python-win32] File Time: win32file vs Python ?

2009-07-05 Thread Gabriel Genellina
archivos 21.468 bytes 0 dirs 204.499.968 bytes libres To restore the same date/time, I have to use: from pywintypes import Time creationTime, accessTime, writeTime = [Time(timegm(localtime(int(t for t in GetFileTime(f

Re: [python-win32] Guaranteed cleanup code execution?

2010-01-13 Thread Gabriel Genellina
s too. It's quite easy to write a service using the classes provided. -- Gabriel Genellina ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] 'No such interface supported' question

2010-01-13 Thread Gabriel Genellina
I think this chapter is available for preview from the O'Reilly site. http://oreilly.com/catalog/9781565926219/ -- Gabriel Genellina ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Bundling font with application?

2011-05-17 Thread Gabriel Genellina
think AddFontResourceEx is what you are looking for. http://msdn.microsoft.com/en-us/library/dd183327(v=VS.85).aspx -- Gabriel Genellina ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Subject: AW: [python-win32] Geting values from a thread

2005-01-11 Thread Gabriel Genellina
At 11/1/2005 08:01, you wrote: while True: retval=win32event.WaitForMultipleObjects (self.close_evt,self.accept_evt),False,win32event.INFINITE) if retval == win32event.WAIT_OBJECT_0: win32file.CloseHandle(self.accept_evt) self.socket.

[python-win32] Re: Window capture using WM_PRINT and Python

2005-01-18 Thread Gabriel Genellina
At 18/1/2005 20:08, you wrote: I'm a Java developper and I wish to make a capture of an offscreen window (on WinXP). It's not possible in Java, so I use a python script and WM_PRINT, but it doesn't seem to work. I think device contexts are not shareable between processes, so you can't pass a DC

[python-win32] Re: on the way to find pi!

2005-01-24 Thread Gabriel Genellina
At 24/1/2005 08:00, you wrote: # Call pi(20) for first 20 digits, or pi() for all digits def pi(n=-1): printed_decimal = False r = f((1,0,1,1)) while n != 0: if len(r) == 5: stdout.write(str(r[4])) This code gives the number in an unusual format like "3.1415'None'"

[python-win32] Re: sleep() fine-control in Python - RDTSC, select() etc.

2005-01-24 Thread Gabriel Genellina
At 24/1/2005 21:24, you wrote: I have a need for a time.clock() with >0.16 second (16us) accuracy. The sleep() (on Python 2.3, Win32, at least) has a .001s limit. Is it lower/better on other's platforms? Try a waitable timer

[python-win32] Changing desktop color (Chris Stromberger)

2005-02-08 Thread Gabriel Genellina
which_color))) Gabriel Genellina Softlab SRL ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] How Can I exec() a statement?

2005-04-06 Thread Gabriel Genellina
At Wednesday 6/4/2005 14:57, * William wrote: HOW -- or, is it possible -- to execute the an assignment statement from a string? Try 'exec' >>> a=1 >>> b=2 >>> exec 'a=b+3' >>> a 5 Gabriel Genellina Softlab SRL

Re: [python-win32] How Can I exec() a statement?

2005-04-11 Thread Gabriel Genellina
t;> def f(x): ...   print x, id(x) ... >>> >>> a = [1,2,3] >>> b = a >>> a [1, 2, 3] >>> b [1, 2, 3] >>> id(a) 6999440 >>> id(b) 6999440 >>> f(a) [1, 2, 3] 6999440 >>> f(b) [1, 2, 3] 6999440 >>> Gabriel Genellina Softlab SRL ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Python and Hardwaremanagement

2005-04-12 Thread Gabriel Genellina
y "take control of my hardware". Unless you're doing very specific things, just let the OS take control of your hardware... What do you want to do? Gabriel Genellina Softlab SRL ___ Python-win32 mailing list Python-win32@python.org

Re: [python-win32] word

2005-04-15 Thread Gabriel Genellina
At Thursday 14/4/2005 15:33, ryan pinto wrote: wordApp.CommandBars.FindControl(Id=23).Execute Remember that, in Python, you must use () to invoke a function, even if it has no arguments. Gabriel Genellina Softlab SRL ___ Python-win32 mailing list

Re: [python-win32] Forcing win32com.client.dispatch to start up a fresh Excel

2005-06-21 Thread Gabriel Genellina
At Tuesday 21/6/2005 17:27, [EMAIL PROTECTED] wrote: >Soon I'll be doing the more involved thing, with a farm of one. I'll >certainly let y'all know if it doesn't work! Might be interesting to know if it *does* work too! Gab

Re: [python-win32] Unable to set an Excel chart's title through win32com : can you reproduce this problem ?

2005-06-28 Thread Gabriel Genellina
another sheet invalidates the object reference (which may be tied to its current location...) Gabriel Genellina Softlab SRL ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32pipe and buffer size

2005-07-12 Thread Gabriel Genellina
end of the pipe) would help. But if the buffering is at the C run-time library, I'm afraid there is nothing you could do to flush the output without rewriting the code or hacking the RTL DLLs. To disable buffering on stdout, put any of these calls at the very beginning

Re: [python-win32] list/kill processes on Win9x and NT+...

2005-07-12 Thread Gabriel Genellina
enumerate processes using ToolHelp32: http://support.microsoft.com/kb/q175030/ Gabriel Genellina Softlab SRL ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] list/kill processes on Win9x and NT+...

2005-07-12 Thread Gabriel Genellina
and XP? > > > >PDH will work for NT, 2000 and up. For Win95/98 you can enumerate > processes using ToolHelp32: http://support.microsoft.com/kb/q175030/ If you eventually craft a function for enumerating all processes which works on all platforms, would be nice if you could post

Re: [python-win32] Task Scheduler

2005-07-19 Thread Gabriel Genellina
its startup directory? Runs under any user account? Needs any privilege? Is interactive? (use /interactive) Gabriel Genellina Softlab SRL ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32 version

2005-07-27 Thread Gabriel Genellina
. You could enumerate the uninstall keys and see what "looks like" a Python installation... HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\pywin32-py2.3 (I hope there is a better way) Gabriel Genellina Softlab SRL __

Re: [python-win32] Possibility of calling static functions using window/thread handles?

2005-08-23 Thread Gabriel Genellina
ike a named pipe, or DDE. (try the DDE demo) Gabriel Genellina Softlab SRL ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] handling paths in windows services

2005-09-09 Thread Gabriel Genellina
: import os,sys print os.path.join( os.path.dirname( os.path.abspath( sys.argv[0])), 'svc.cfg') Gabriel Genellina Softlab SRL ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] create word document?

2005-10-05 Thread Gabriel Genellina
sed objects work. Just record a macro doing whatever you want to do in Word and see the resulting code. Gabriel Genellina Softlab SRL ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Weird ADSI hang.

2005-10-06 Thread Gabriel Genellina
t recurse(...) since recurse() doesnt return anything print "At the start" recurse("IIS://localhost/W3SVC") print "At the end" Gabriel Genellina Softlab SRL ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Control-C

2005-10-13 Thread Gabriel Genellina
his doesn't allow the normal cleanup >operations to do what they need to do. Any help you might have would be >greatly appreciated. win32api.GenerateConsoleCtrlEvent http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/generateconso

Re: [python-win32] String weirdness on python 2.4 / windows

2005-10-19 Thread Gabriel Genellina
mage/bmp (icon files having different format than bmp files) Gabriel Genellina Softlab SRL ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] findwindow by its class name

2005-10-21 Thread Gabriel Genellina
e known message (using RegisterWindowMessage) including its own HWND; Application B handles it and replies to A with its own HWND. After that, both apps know the other's HWND and can post messages. Gabriel Genellina Softlab SRL ___ Python-win32 mailing list P

Re: [python-win32] drag/move image from staticBitmap control?

2005-10-28 Thread Gabriel Genellina
control when only part image on the screen, just like >maps.google does, >is it possible to do that? A better place to ask would be the wxPython list Gabriel Genellina Softlab SRL ___ Python-win32 mailing list Python-win32@python.org http://mail.

Re: [python-win32] Bug in pythoncom.CoInitialize(Ex)

2005-11-09 Thread Gabriel Genellina
terest in the fact the thread has already been initialized >differently. If it is prepared to work in a different threading model, it >just needs to catch the exception. I think these are reasonable asumptions so it's unlikely you would break existing code. None min

Re: [python-win32] COM object has been seperated from its underlying RCW cannot be used.

2005-11-09 Thread Gabriel Genellina
help: http://support.microsoft.com/default.aspx?scid=kb;EN-US;818612 An explanation of the problem: http://radio.weblogs.com/0105852/stories/2002/12/21/comInteropNotFundamentallyFlawedButHard.html Gabriel Genellina Softlab SRL ___ Python-win32 maili

Re: [python-win32] PythonWin - Start in script's directory

2005-11-22 Thread Gabriel Genellina
7;,'w') >to make a file in the same directory as my script, instead of wherever >PythonWin wants to put it by default, I think somewhere in C:\Python? os.path.dirname(os.path.abspath(sys.argv[0])) returns the directory where your script is. You can make it the current

Re: [python-win32] PythonWin - Start in script's directory

2005-11-22 Thread Gabriel Genellina
ways can run a process with a "startup directory" different from where it is located. If you want to ensure that they are the same, you must do something like above. Or create a shortcut icon. Gabriel Genellina Softlab SRL ___ Python-win32 m

Re: [python-win32] mciSendCommand from win32 ???

2005-11-28 Thread Gabriel Genellina
re things) Try http://www.freepascal.org/ and Lazarus. Or, there is a small DirectSound example, see the PyWin32 help. Gabriel Genellina Softlab SRL ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] BSTR

2006-04-14 Thread Gabriel Genellina
: print 'Ok' ... else: print 'Wrong!' ... Ok >>> if always_true()==True: print 'Ok' ... else: print 'Wrong!' ... Wrong! >>> Gabriel Genellina Softlab SRL __ Correo Yahoo! Esp

Re: [python-win32] BSTR

2006-04-14 Thread Gabriel Genellina
desired effect. It's a common pitfall, specially if you come from VB, that's why I menction it here. Like, in C: if (a=b) {...} which "works" but usually is not the intended behavior. Gabriel Genellina Softlab SRL __ Correo Y

Re: [python-win32] select.poll()

2006-04-24 Thread Gabriel Genellina
, not any file. WaitForMultipleEvent might be useful but depends on what you need. Gabriel Genellina Softlab SRL __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.c

Re: [python-win32] select.poll()

2006-05-02 Thread Gabriel Genellina
find information about WaitForMultipleEvent It's a Windows function, search msdn.microsoft.com. But you dont need it if you only have to poll sockets. Gabriel Genellina Softlab SRL __ Correo Yahoo! Espacio para todos tus mensajes, antivirus

Re: [python-win32] killProcName.py not working for processes under user SYSTEM

2006-05-02 Thread Gabriel Genellina
as administrator, do not have enough privilege to grab the process handle. This is a common scenario for services running as Local System. See http://support.microsoft.com/kb/197155/en-us Gabriel Genellina Softlab SRL __ Correo Yahoo! Espacio para t

Re: [python-win32] how to only accept local computer requests

2006-05-08 Thread Gabriel Genellina
requests from other computers. If the config file does not exist, it accepts requests from any computers. Is there any easy way to do it ? To see if the config file exists, use os.path.isfile(filename) To enable only local connections to your server, see the Twisted documentation. Gabriel Genellina

Re: [python-win32] Try to got short path for files - but got error...

2006-05-29 Thread Gabriel Genellina
ould pass it the LONG filename (perhaps enclosed in double quotes). - FSUM is just a wrapper around the QuickHash library. They provide a TypeLibrary and a standalone DLL. You should be able to use win32com or ctypes to access

Re: [python-win32] starnge error at startup

2006-07-20 Thread Gabriel Genellina
? COMMENT = N_TOKENS exceptions.NameError: name 'N_TOKENS' is not defined Looking at tokenize.py, it imports all from token.py Look at your token.py. There is a notice at the top of the file, it should have been built automatically, but perhaps something failed. Gabr

Re: [python-win32] [Errno 2] No such file or directory:

2006-07-26 Thread Gabriel Genellina
ath with \\ is strange... The enclosed function unicode_test is useless. And, the import statement usually is located at the top of the module. Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descubrí. Todo l

Re: [python-win32] testing ADSI GUID buffer objects

2006-07-26 Thread Gabriel Genellina
ou feed the function with that string, it interprets the first 16 bytes only, *each* hex number as a byte: 38h='8', 30h='0', 31h='1'...64h='d' 34h='4' 32h='2' Can you post an example showing the expected interfase? Gabriel Genellina S

Re: [python-win32] sleep() for less than .001s?

2006-08-04 Thread Gabriel Genellina
our thread/process's priority using SetPriorityClass or SetThreadPriority. This is to minimize the (unpredictable) delay of sleep() - Keep your qPC loop, but insert a sleep(0) call, this would free the CPU. Gabriel Genell

Re: [python-win32] win32ui.CreateFileDialog error

2006-08-09 Thread Gabriel Genellina
. When you select more files than will fit, the API returns an error, and the wrapper returns that error instead of reallocating and retrying. But how can one detect that? DoModal() returns 2 (IDCANCEL) in this case, how can be distinguished from the user pressing the Cancel button? Gabrie

Re: [python-win32] Shape file field update problem

2006-08-25 Thread Gabriel Genellina
ine is not working getting the following error. File "", line 2, in calculatefield_management com_error: (-2147467259, 'Unspecified error', None, None) Since the first call to calculatefield_management succeeds with the same argument types, I think this is not related to Python nor

Re: [python-win32] IMPORT path

2006-09-12 Thread Gabriel Genellina
my "Hello World" script away from the development directories the path gets lost and Python can not find the modules. Reading the Python tutorial may help http://docs.python.org/tut/tut.html, specially about packages. Gabr

Re: [python-win32] Fatal Error

2006-09-19 Thread Gabriel Genellina
x27;s generated by your script... Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (Beta). ¡Probalo ya!

Re: [python-win32] plot function

2006-09-25 Thread Gabriel Genellina
At Sunday 24/9/2006 02:55, [EMAIL PROTECTED] wrote: Does Python have a library providing a plot function similiar to matlab that will plot a math plot or just some data points in a pop-up window pychart may be useful Gabriel Genellina Softlab SRL

Re: [python-win32] MS Word

2006-10-03 Thread Gabriel Genellina
ven't found any good examples. I usually create a macro for doing what I want, and then I inspect the VBA code to see how it's done. Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descub

Re: [python-win32] Calling a subprocess with spaces in the path

2006-10-18 Thread Gabriel Genellina
missing about spaces in the path on windows? Yes, type cmd /? and see the rather crazy rules about quotes on the shell... (BTW if I use f=os.popen(s, 'w') It works fine, but that leaves me with a blocking call, and I really want a subprocess) This way you are not running your com

Re: [python-win32] disable mouse/keyboard input

2006-10-20 Thread Gabriel Genellina
sable mouse and keyboard globally, for all the system? Just for your application? Is this a GUI app? which framework have you used to build the GUI? -- Gabriel Genellina Softlab SRL __ Correo Yahoo! Espacio para todos tus mensajes, antivi

Re: [python-win32] win32pdh problem on Windows Server 2003

2006-10-31 Thread Gabriel Genellina
was renamed in 2003. In your particular case: Also, the names are localized, so if you have a non-english version of Windows, you have to look up what are the translated names. (I don't know how to obtain a "neutral" name usable everywhere) -- Gabriel Genellina Softlab SRL

Re: [python-win32] win32pdh problem on Windows Server 2003

2006-10-31 Thread Gabriel Genellina
is far from perfect, the find_pdh_counter_localized_name() function in win32pdhutil does try to handle some of these localization issues. Good! -- Gabriel Genellina Softlab SRL __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gra

Re: [python-win32] Suggested change to document.py

2006-11-02 Thread Gabriel Genellina
\bin directory. I don't even knew hard links existed on Windows! Thanks... -- Gabriel Genellina Softlab SRL __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - h

Re: [python-win32] Compiling a Python Windows application

2006-11-29 Thread Gabriel Genellina
sets some parameters , clicking OK is to > start the Python app. The open Word document and the parameters need to be > made available to the app.> -- Gabriel Genellina Softlab SRL __ Correo Yahoo! Espacio para todos tus mensajes, an

Re: [python-win32] screen capture and win32gui.GetDesktopWindow()

2006-12-06 Thread Gabriel Genellina
pseudo video card" driver to watch for drawing primitives as TightVNC does (or is it some other VNC clone?) -- Gabriel Genellina Softlab SRL __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya

Re: [python-win32] USB Power Off from Python

2006-12-14 Thread Gabriel Genellina
At Wednesday 13/12/2006 23:48, James Matthews wrote: However we see that you can unmount it ans sometimes it will be turned off I think it's some kind of "soft" turn off; you send the device a command to shutdown self. The +5V stay there. -- Gabriel Genell

Re: [python-win32] Displaying contents of a file using PyWin

2006-12-21 Thread Gabriel Genellina
ses a different exception now. -- Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (Beta). ¡Probalo ya! http

Re: [python-win32] Displaying contents of a file using PyWin

2006-12-21 Thread Gabriel Genellina
#x27;t recall (and grep doesn't show) that pythonwin ever raises this exception. It is used in 4 scripts inside pythonwin\pywin\framework. And can be found on your own book, chapter 20... -- Gabriel Genellina Softlab SRL

Re: [python-win32] PyWin32 - PostMessage return value

2007-01-20 Thread Gabriel Genellina
am arguments when it sends some message. This way, the target application can reply to the caller when he has completed processing the operation (either ok or with an error). -- Gabriel Genellina Softlab SRL __

Re: [python-win32] PyWin32 - PostMessage return value

2007-01-22 Thread Gabriel Genellina
o detect if a menu is enabled or not, you could use GetMenuState, but I'm not sure if that helps you at all... -- Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descubrí. Todo lo que querías saber,

Re: [python-win32] Launch process

2007-01-24 Thread Gabriel Genellina
er to close the thread and process handles when not needed. -- Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (B

Re: [python-win32] how to generate an IPersistStream object?

2007-01-29 Thread Gabriel Genellina
7;ve never implemented that interfase myself, but usually you only have to add two class attributes: _com_interfaces_ and _public_methods_, and implement the needed methods. You should refer to the Microsoft documentation on the exact semantics of each method. -- Gabriel Genellina S

Re: [python-win32] py2exe all of it

2007-02-13 Thread Gabriel Genellina
can't you run the Python installer > executable? I don't know what's exactly the OP's problem, but in general, asking a user to install Python first, then wxPython, then pyOpenGL, and only then the desired application may be too much. py2exe is a nice way t

Re: [python-win32] win32gui.GetOpenFileName()

2007-03-06 Thread Gabriel Genellina
e http://msdn2.microsoft.com/en-us/library/ms646839.aspx -- Gabriel Genellina ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] COM works from IDLE but not when file executed from Windows Explorer

2007-03-14 Thread Gabriel Genellina
using: import os print os.path.dirname(os.path.abspath(__file__)) (I suggest computing that early on your program, because if the current directory changes, abspath will give a wrong result) -- Gabriel Genellina ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32