get output of cmd-line command under MS windows

2006-02-08 Thread calmar
Hi all, unfotunately, 'commands.getstatusoutput(command)' does not work under windows. Would there be any alternative? os.system also just provides the exit number I think. thanks a lot, and cheers marco -- calmar (o_ It rocks: LINUX + Command-Line

Re: get output of cmd-line command under MS windows

2006-02-10 Thread calmar
en it prints something, something was not ok probably. I will check the resulting file, to see if everything went ok, and try to catch the output like you mentioned. thanks a lot marco -- calmar (o_ It rocks: LINUX + Command-Line-Interface //\ V_/_ http://www.calmar.ws -- http://mail.python.org/mailman/listinfo/python-list

Re: get output of cmd-line command under MS windows

2006-02-14 Thread calmar
subprocess.PIPE,\ stderr=subprocess.PIPE, shell=False) message = pipe.stdout.read() error = pipe.stderr.read() thanks all, calmar -- calmar (o_ It rocks: LINUX + Command-Line-Interface //\ V_/_ http://www.calmar.ws -- http://mail.pyt

text encodings -> subprocess.Popen or -> labelmarkup (pygtk)

2006-02-16 Thread calmar
ment? If, then how could I get that environemnt? (the programs runs also under MS windows) Well, maybe someone has some hints about encodings issues like that, and what I can send to external commands? thanks a lot calmar -- calmar (o_ It rocks: LINUX + Command-Line-Interf

general coding issues - coding style...

2006-02-18 Thread calmar
Hi all, since I'm just a 'handicraft'/beginner or so, could anybody provide me with some (rough) hints, about how to enhance the code here: http://calmar.ws/tmp/cal.html Cheers and thanks a lot calmar -- calmar (o_ It rocks: LINUX + Command

Re: general coding issues - coding style...

2006-02-18 Thread calmar
oblems with that (and gave up), but since I begin to now understand it somebit more, I should try/check again. > - when creating string-keyed dicts, the idiom > > dict(foo="bar", > baz="pillepalle") I see, I changed too. Thanks a lot, marco -- c

Re: general coding issues - coding style...

2006-02-19 Thread calmar
ast remove them before e.g. putting to the web or so. Cheers and thanks, calmar -- calmar (o_ It rocks: LINUX + Command-Line-Interface //\ V_/_ http://www.calmar.ws -- http://mail.python.org/mailman/listinfo/python-list

Re: general coding issues - coding style...

2006-02-19 Thread calmar
e the poster > above mentioned, you have things that are telling you they want to > be objects. I will try to get some order (classes) and maybe remove them. thanks a lot!! cheers, calmar -- calmar (o_ It rocks: LINUX + Command-Line-Interface //\ V_/_

Re: general coding issues - coding style...

2006-02-20 Thread calmar
f confused actually. http://calmar.ws/tmp/cal.html Will try to cleanup and implement even further all good advices from all in some days. Thanks a lot!! calmar -- calmar (o_ It rocks: LINUX + Command-Line-Interface //\ V_/_ http://www.calmar.ws -- http://mail.python.org/mailman/listinfo/python-list

Re: general coding issues - coding style...

2006-02-21 Thread calmar
.* functions, if you are interested in making your code work > on different platforms. Yeah, I will use the os.sep variable, that's a good idea thanks a lot, calmar -- calmar (o_ It rocks: LINUX + Command-Line-Interface //\ V_/_ http://www.calmar.ws -- http://mail.python.org/mailman/listinfo/python-list