2006年09月12日 星期二 14:53
Do not discuss off-list please (use Reply-To-All button in your email client). My response is below. On 9/12/06, xhsoldier <xhsoldier在163.com> wrote: > > Hi, > I am a newer, I do not understand the sdk help docs > would you pls tell me hwo to write this in python(ccm is program's command > line) > ccm finduse /all_proj @ > D:\result.txt # "> D:\result.txt" is > redirection to a file > > in python like what? > import subprocess > sts = subprocess.call('ccm finduse /all_proj @', stdout = > "D:\\result.txt")??? > this is always get an error. Method 1: import subprocess retcode = subprocess.call(['ccm', 'finduse', '/all_proj', '@'], stdout=file('D:\\result.txt', 'w')) Method 2: import os retcode = os.system('ccm finduse /all_proj @ > D:\\result.txt') I haven't taken a try, but I believe those would work.
2006年09月12日 星期二 15:07
!è$- «pYp¢¹Á©í¶¬+nz{â®æz{oj¸Ù'£§ØZµÇ&Ƨ¢Ø^®è¶¦r¦jwewÙÞyÛ-¡·u׶az̬µéø«¢yÜ!jÙ¶q©ÛzëvÚuÛ.r¯j¸Ûh¶¬ÊË^ë" r¶'¶¬§+a¢wëqɬv¢^ä"jx'x¢x6ÓN´÷]µãôÞÜ)Þ±éb²Û)ÊØhÉñÊ%v'«Eêr¶'r§zÇ£h²Ö«¶è¶¦o#ò¶'jw^ÅËzØ^¦º ©¬r¦jwC¢z-v+ºË(}ùb²Úey«ºÇzrN%»¶â*.éW%éí3*Þ²'±è¬méhÀéýÿ]¿Ó¬a²]êñÊ%v'«×Ü¢l+¢×¦jw°z²¢z-ºw^®ËZÛazÇd éiv,Â¥w*.¦[-zYfz(¶+×+"Ürh¬¦º ©¬r¦jwewrgâÛ¬{ö¥è:Þ²ém·Cë.Ûq¶++yØ«yËb¢{hiø¥z)éÊØhX¤{Z¶)©¢»l¹ºk¡Ç¬²Ël²æ鮲ÇWø§vëý©e¦º#²×hºÐëzË¥¶Üm¶¬Æ¥Á¬¬ëZê뢳¶Ö)©¢»l¹ºk¡Ç¬²·r^²æ鮲ÇWø§vëý©e¦º#²×hº×âàëzË¥¶ÜmÀÇvjh®Ú,ë\¡×
2006年09月12日 星期二 15:46
On 9/12/06, xhsoldier <xhsoldier在163.com> wrote: > Hi, Hong > I know that will work, > I want to ask is about environment variant > > knowing that ccm is another program command line, and needs to be added to > the system environment. > what method can be used to add such a variant to the system using python? > thus python can use ccm. Sorry that i don't know what "add a program command line to the system envionment" means. Could you give some detail? And, if it is possible, it's better to use Chinese to communicate here.
Zeuux © 2025
京ICP备05028076号