Hi, folks,
I have a Python script that is invoked by a shell script. I uses
sys.exit() with a parameter within python.
The calling script is using this line to get the return code:
exit_code = !$
but it fails to get it. What's wrong here? (I am no Linux guru)
Thanks in advance
Mark
--
On Sep 23, 8:01 pm, Donn donn.in...@gmail.com wrote:
On Wednesday 23 September 2009 18:51:29 volcano wrote: exit_code = !$
I think it's $? to get the code.
\d
--
home:http://otherwise.relics.co.za/
2D vector animation :https://savannah.nongnu.org/projects/things/
Font manager :https
Can it be done, and if yes - how?
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 11, 2:21 pm, Maël Benjamin Mettler [EMAIL PROTECTED] wrote:
volcano schrieb:
Can it be done, and if yes - how?
Define address. Are you talking about URLs? File paths? Postal
addresses? Memory addresses? Whatever addresses?
I'm afraid the people on this list can't read your thoughts
On Feb 11, 2:46 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
In [EMAIL PROTECTED], volcano wrote:
On Feb 11, 2:21 pm, Maël Benjamin Mettler [EMAIL PROTECTED] wrote:
volcano schrieb:
Can it be done, and if yes - how?
Define address. Are you talking about URLs? File paths
On Feb 11, 3:46 pm, Steve Holden [EMAIL PROTECTED] wrote:
volcano wrote:
On Feb 11, 2:46 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
[...]
What's your goal? What do you expect at the memory address you want to
access?
Ciao,
Marc 'BlackJack' Rintsch
My goal
volcano wrote:
Hello, folks!
A trivial question - I have a working Python script that I have to
invoke from C++ code. No fancy stuff - just run the whole script with
its parameters. No callbacks, no signalling - nada, just
stupid,primitive, straightforward call.
And while there is a lot
Hello, folks!
A trivial question - I have a working Python script that I have to
invoke from C++ code. No fancy stuff - just run the whole script with
its parameters. No callbacks, no signalling - nada, just
stupid,primitive, straightforward call.
And while there is a lot of help on embedding, I
Gerard Flanagan wrote:
volcano wrote:
Hello, folks!
A trivial question - I have a working Python script that I have to
invoke from C++ code. No fancy stuff - just run the whole script with
its parameters. No callbacks, no signalling - nada, just
stupid,primitive, straightforward call
Gerard Flanagan wrote:
volcano wrote:
Gerard Flanagan wrote:
volcano wrote:
Hello, folks!
A trivial question - I have a working Python script that I have to
invoke from C++ code. No fancy stuff - just run the whole script with
its parameters. No callbacks, no signalling
Hello, folks!
Script I am creating has to format a device - USB flash drive. I have
tried using regular DOS format through os.system - did not work
well, because DOS format requires input from user. And the script
should run without user interference.
I have taken a look at ActivePython win32...
weir wrote:
this may help, you need ctypes module.
##
from ctypes import *
fm = windll.LoadLibrary('fmifs.dll')
def myFmtCallback(command, modifier, arg):
print command
return 1 # TRUE
FMT_CB_FUNC = WINFUNCTYPE(c_int, c_int, c_int, c_void_p)
OK, it worked. Obviosly, quick format was a bad choice.
Thanks a lot for your help!
Mark
--
http://mail.python.org/mailman/listinfo/python-list
I am looking for a way to discover which classes a module contains from
inside. I am building a testing class that should, when instatntiated
within any module, locate certain classes within the containing module.
Words of wisdom? Anybody?
--
http://mail.python.org/mailman/listinfo/python-list
Sion Arrowsmith wrote:
volcano [EMAIL PROTECTED] wrote:
I am looking for a way to discover which classes a module contains from
inside. I am building a testing class that should, when instatntiated
within any module, locate certain classes within the containing module.
globals().keys
Miki, toda, but it did not work for me. BTW, I have forgotten to
mention - the implementation I develop should be multi-platform.If
anything else comes to you mind - I'll be more than gateful to hear.
Regards,
Mark
--
http://mail.python.org/mailman/listinfo/python-list
I am desperately looking for an info how to combine a testing
application with decent GUI interface - the way most xUnits do. I
believe I have seen something about using Tkinter, but I do not
remember - where.
I am working on a complex testing application built over unittest
module, and I need GUI
17 matches
Mail list logo