Re: Executing WinXP commands using os module

2009-01-23 Thread M�ta-MCI (MVP)
Hi! Try: os.system("""start "" cmd /css checkout $\projectName\file -Yusername,password -c'Test comment' """) (not tested ; it's directly from my memory) @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: "The application has failed to start because the application configuration is incorrect"

2009-01-27 Thread M�ta-MCI (MVP)
Hi! I have a similar problem, with Python 2.6.1 and pywin32. Since python 2.6.1. Return to 2.6: OK ; re-install 2.6.1: the problem return. No solution to this day. The problem is known, but not resolved In the expectation, I stay in 2.6 @-salutations -- Michel Claveau -- http://mail.python.o

Re: ActivePython 2.6.1.1 and 3.0.0.0 released!

2008-12-12 Thread M�ta-MCI (MVP)
Hi! M. Hammond said (wrote) said that the work is enormous, because modifications of the C architecture of Python 3 was largely modified. (sorry for my bad english) -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: pymssql for python 2.6 ?

2008-12-19 Thread M�ta-MCI (MVP)
Hi! Look at http://www.mayukhbose.com/python/ado/ado-connection.php That run OK with Python 2.6 @-salutations -- MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL on 3.x?

2008-12-19 Thread M�ta-MCI (MVP)
Hi! This info is interesting for many people. IMO, it's a good idea to write the question in this newsgroup. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL on 3.x?

2008-12-20 Thread M�ta-MCI (MVP)
Hi! Fredrik Lundh (Pythonware ; the author of PIL (and ElementTree, and many other things)) had, in the past, often give answers. To me, like to others people. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: check whether a JPG is completed?

2008-12-20 Thread M�ta-MCI (MVP)
Hi! Sometimes, PIL give an error. With "try: Except:", you can get info. Sometimes, non error, but the Jpeg is not correct. Difficult, in this case, to get info. Therefore, the answer is: "not in all cases". @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-li

Re: join a samba domain

2008-12-22 Thread M�ta-MCI (MVP)
Hi! If you are under Vista, you must change the LSA parameter. See: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa LMCompatibilityLevel try with value 1 or 0 And use a Samba not too old. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/

Re: python is great

2009-01-06 Thread M�ta-MCI (MVP)
python is great. No. Python is VERY GREAT !!! -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] Data Plotting Library DISLIN 9.4

2008-10-15 Thread M�ta-MCI (MVP)
Hello! version 9.4 of DISLIN Thanks! I like Dislin. But... I don't found the release (binary/win) for Python 2.6... -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] Data Plotting Library DISLIN 9.4

2008-10-17 Thread M�ta-MCI (MVP)
Merci beaucoup. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding Default Page Name using urllib2

2008-10-27 Thread M�ta-MCI (MVP)
Hi! Can I do this in python? No. The "default page" is a property of the web-server ; and it is not client side. Examples : for Apache, it's index.html or index.htm ; but if PHP is installed, index.php is also possible. for APS, it's init.htm (between others possibilites). etc. @-s

Re: Python is slow

2008-05-23 Thread M�ta-MCI (MVP)
Bonsoir ! Perso, je pense que des précisions comme celles de Bruno sont très utiles, car elles évitent les dérives, et l'apparition de langages bâtards, et impurs (pythonesquement parlant). Non aux Pythons OGM !!! Toutefois, iles est dommage que je comprenne pas l'anglais, et donc pas

Re: Merging ordered lists

2008-06-01 Thread M�ta-MCI (MVP)
Hi! Use set (union). Example: la=[2,1,3,5,4,6] lb=[2,8,6,4,12] #compact: print list(set(la).union(set(lb))) #detail: s1 = set(la) s2 = set(lb) s3 = s1.union(s2) print list(s3) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Scripting SAP GUI (Windows)

2008-07-02 Thread M�ta-MCI (MVP)
Hi! Linux is much better place You confuse proselitism and objectivity... @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Scripting SAP GUI (Windows)

2008-07-02 Thread M�ta-MCI (MVP)
Hi! You can use Autoit. Bad "conception" language ; but many good tools, for identify windows, process, send keystrokes, emulate mouse, etc. (Autohotkey is make on Autoit 2 ; Autoit is actually in version 3). Good trick : Autoit-X is a COM server, with the most importants functions of Autoit (

Re: PIL(Py Image lib), show() not showing picture...

2008-07-03 Thread M�ta-MCI (MVP)
Hi! Which OS? On Vista, you MUST reconfig the "aperçu images et télécopies" (in french ; sorry, I don't know the english translation). @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python with Ecmascript

2008-07-05 Thread M�ta-MCI (MVP)
Hi! Ecmascript (Jscript) is Active-Scripting compliant. With PyWin32, you can : - call JScript functions (with parameters) - define pieces of code (& run it) Another way, is to drive Internet-Explorer (via COM). You can set the IE-Windows as invisible, and connect the motor of execution (

Re: pythoncom InternetExplorer.Application don't work in vista || firefox pythoncom ?

2008-07-05 Thread M�ta-MCI (MVP)
Hi! Your code run OK for me (Vista Ultimate). This other version run also OK : def webbrowser(url=None): import win32com.client, time ie=win32com.client.Dispatch('InternetExplorer.Application') while ie.Busy==True: time.sleep(0.125) ie.Top = 0 ie.Left = 0 ie.Hei

Re: Python with Ecmascript

2008-07-05 Thread M�ta-MCI (MVP)
Hi! Is there a way to do similar things on linux? I think no. Because these tech use COM. And COM don't exist under xxnux. But: - look if XPCOM, or dBus) can help you - search with the word "MOZLAB", who work a solution (plugin) for drive Firefox, from an external software. Good luck! --

Re: pythoncom InternetExplorer.Application don't work in vista || firefox pythoncom ?

2008-07-06 Thread M�ta-MCI (MVP)
H... I have a similary problem, in another circumstances. It's often a problem of configuration of IE (for news customers). But, it is not easy, because IE has many parameters. Good luck! Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python COM

2008-07-29 Thread M�ta-MCI (MVP)
Hi! Example, with Pywin32: import win32com.client moncom = win32com.client.Dispatch('MyCOM1.AdvMethod') moncom.IAdvMethod(... See Pywin32 here: http://sourceforge.net/projects/pywin32/ @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: List open files

2008-04-08 Thread M�ta-MCI (MVP)
Salut ! Finalement, tu as obtenu plus de réponses sur le NG français. Comme quoi, la vérité n'est pas toujours ailleurs... @+ -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: List open files

2008-04-08 Thread M�ta-MCI (MVP)
Hi! > OpenFiles.exe OK, on a standard CPU/windows. On a server, use:Net File @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Python plus

2008-04-11 Thread M�ta-MCI (MVP)
After IronPython, Python + iron : http://www.golfermania.com/SnakeEyes/PYTHON-PLUS-IRON.jpg ;o) Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN]: Python-by-Example updates

2008-04-12 Thread M�ta-MCI (MVP)
Hi! Good! Thanks. I found a bad link, for "traceback module" @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] Data Plotting Library DISLIN 9.3

2008-04-15 Thread M�ta-MCI (MVP)
Hi, Thanks! I like DISLIN (even if I use it very little). @+ -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Idea for P3K

2008-05-07 Thread M�ta-MCI (MVP)
Hi! print become a function ; OK I thought: and why the affection (=) would not become, also, a function? Examples: a = 123return 123 b,c = 543.21, "LOL"return (543.21, "LOL") @-salutations Michel Claveau -- http://mail.python.org/mailman/l

Re: Idea for P3K

2008-05-07 Thread M�ta-MCI (MVP)
Hi! I don't often feel like using this word Look at languages like OCAML or F # @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: mmap and ctypes

2008-08-17 Thread M�ta-MCI (MVP)
Hi! See here: http://www.ponx.org/download/CD/COMdll/autoitmmap.dll @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: running exe file

2008-08-21 Thread M�ta-MCI (MVP)
Hi! See: system( startfile( subprocess( spawn( etc. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Launch an application and continue the script's execution

2008-08-23 Thread M�ta-MCI (MVP)
Hi ! Replace: os.startfile("launch_trace.bat") by os.startfile('start "" cmd /c launch_trace.bat') and "le tour est joué". @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Launch an application and continue the script's execution

2008-08-23 Thread M�ta-MCI (MVP)
Hi! More easy: os.system('cmd /c c:\\temp.bat') @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Not fully OO ?

2008-09-21 Thread M�ta-MCI (MVP)
Bonjour ! AMHA, ceux qui ont écrit ce texte ont une mauvaise idée de ce que sont les variables en Python. Ils ont sans doute trop en tête les notions des variables en C ou en Basic, et ne se sont pas penchés sur les spécificités de Python. @-salutations -- Michel Claveau -- http://mail

Re: how to search multiple textfiles ?

2008-09-26 Thread M�ta-MCI (MVP)
Hi! On Windows, you can use the (standard) command findstr Example: findstr /n /s /I strsearched *.py @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: how to search multiple textfiles ? (Python is slow ?)

2008-09-27 Thread M�ta-MCI (MVP)
Hi ! Thanks for return. Some infos: from a long time, I found that it's often more fast to use windows's command, instead of develop in high level language (and also, low level...) FINDSTR is fast. OK. But internal commands are more fast. Example : DIR (with all his options) And it's faste

Re: python & sms

2008-09-30 Thread M�ta-MCI (MVP)
Hi! You can manage Skype from Python('s scripts), for use the functionalities of Skype to send SMS. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: self signing a py2exe windows executable

2008-10-04 Thread M�ta-MCI (MVP)
Hi! Very interesting. Roger, thank you very much super enormous!!! @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib supports javascript

2008-02-02 Thread M��ta-MCI (MVP)
Hi! "javascript support" need more details: - only the (abstract) language? - or, also, visuals aspects? On Windows, you can use,easily, the language (JScript). Example: import win32com.client js=win32com.client.Dispatch('ScriptControl') js.language='jscript' src="""function jmul2(x){

<    1   2