This is probably a stupid question, but how do I call another python script?
I am trying to write some test scripts in Python and this is what I want to
do:
call setup.py
.
.
.
run test
.
.
.
call cleanup.py
Robin L. Siebler
Software Test Engineer
iBeam
"Bother"
> def start_service(service, machine):
> """Start a service"""
> win32serviceutil.StartService(service, machine)
> result = 1 #Service started successfully
>
> If I try to start a service and it is already running, I get the following
> error:
> api_error: (1056, 'StartService', 'An i
I have the following snippet of code:
def start_service(service, machine):
"""Start a service"""
win32serviceutil.StartService(service, machine)
result = 1 #Service started successfully
If I try to start a service and it is already running, I get the following
error:
api_error: (105
What happens when you try to install?
[EMAIL PROTECTED] wrote:
>
> I cant seem to install Activestate Python 211, I have uninstalled the 2.01
> version that I had before, any ideas?
>
> Cheers
>
> Sharriff Aina
> med.iq information & quality in healthcare AG
>
> __
You need to do either:
from mylibrary.utils import signon
signon.signon("test")
Or:
from mylibrary.utils.signon import signon
signon("test")
Give that a try and see if that helps. The reason yours didn't work is
because the signon function exists within the signon module's namespace. So
you ne
Paul Casteels wrote:
>
>...
> Is this a known problem with PythonWin/wxPython ? Is there another way to
> debug wxPython programs ?
In general, it is not safe to debug graphical applications using
"foreign" toolkits in IDLE or PythonWin. If you've had luck so far with
IDLE, that's fine, but it
Thanks for feedback.
This function works perfectly if I put it in c:\python21\lib
but I'm going to write a bunch of different ones and need a way
to keep them organized (other than stuffing them all in ..\lib).
Here is the signon function. All it does it print the string
that is passed to it wi
In the latest edition of "Programming Python", one chapter is devoted to
pymail, with code which was written by Mark Lutz, I think.
Has anyone got the program pymail (on the server or client) working?
Ken
___
ActivePython mailing list
[EMAIL PROTEC
What was the line of code you tried to run interactively when you got the
error? I think that is where the problem lies, not with your organization. I
suspect you didn't actually call a function in signon. For example, did you
actually try something like:
>>> from mylibrary.utils import signon
>>
I wish to put the modules that I write that will be used in other Python
programs in the following directory structure:
c:\mylibrary--+
|
|
+-utils--- utility modules (signon, read_ini modules)
|
I wish to put the modules that I write that will be used in other Python
programs in the following directory structure:
c:\mylibrary--+
|
|
+-utils--- utility modules (signon, read_ini modules)
|
I wish to put the modules that I write that will be used in other Python
programs in the following directory structure:
c:\mylibrary--+
|
|
+-utils--- utility modules (signon, read_ini modules)
|
Title: Problem with makepy.py in ActivePython 2.1 Build 211
Hi,
I currently have a problem with generating the dispatch wrappers of OLE automation interfaces for Python.
When I run the makepy Skript I get the following error message:
D:\Python210\win32com\client>pytho
The redirection problem is a bug/feature of NT 4.0 that has been corrected
in Win 2K.
Under NT 4.0 you have to use
python scriptname.py > scriptname.log
instead of
scriptname.py > scriptname.log
or
scriptname > scriptname.log
-Original
I have also had problems with PythonWin locking up if I try and run wxPython
programs. When I made the cwd (current working directory) patch to
scriptutils.py I noticed that even for non-debugger runs of a program
PythonWin is execing the code rather than running it as an external program
cod
Title: AW: Vedr: Problem with Output Redirection and ActivePython 2.1, build 211
And you use also print "..." and no explicit flushing of the output?
So it looks like NT4 and Windows2000 behave different.
Or is there any other configuration issue that could cause this behavior?
P
Title: Problem with Output Redirection and ActivePython 2.1, build 211
Hi,
this morning I hit a strange problem with ActivePython 2.1 on a Windows NT4 sp6 machine.
I did test my script with Komodo, everything o.k..
It also runs from the CMD shell.
When I redirect output as fol
I cant seem to install Activestate Python 211, I have uninstalled the 2.01
version that I had before, any ideas?
Cheers
Sharriff Aina
med.iq information & quality in healthcare AG
___
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.Activ
I have a small script that uses the wxPython (2.3.0)library. I can run
this without any problems in the IDLE environment, but with PythonWin
there is a crash after the third run : The instruction at 0x1e132ecd
referenced memory at 0x00014. The memory could not be read. The program
even runs with
19 matches
Mail list logo