How do I call another .py script?

2001-06-25 Thread Robin Siebler
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"

RE: Exception handling

2001-06-25 Thread Mark Hammond
> 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

Exception handling

2001-06-25 Thread Robin Siebler
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

Re: Windows NT4 installation problems

2001-06-25 Thread Paul Prescod
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 > > __

RE: Newbie & package setup (more)

2001-06-25 Thread Patrick K. O'Brien
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

Re: debugging wxPython programs

2001-06-25 Thread Paul Prescod
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

RE: Newbie & package setup (more)

2001-06-25 Thread Larry Bates
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

pymail

2001-06-25 Thread Kenneth McCracken
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

RE: Newbie & package setup

2001-06-25 Thread Patrick K. O'Brien
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 >>

Newbie & package setup

2001-06-25 Thread Larry Bates
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) |

Newbie & package setup

2001-06-25 Thread Larry Bates
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) |

Newbie & package setup

2001-06-25 Thread Larry Bates
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) |

Problem with makepy.py in ActivePython 2.1 Build 211

2001-06-25 Thread Peter . Frey
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

RE: Vedr: Problem with Output Redirection and ActivePython 2.1, b uild 211

2001-06-25 Thread Salmeri, Joseph M (Joseph)** CTR **
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

RE: debugging wxPython programs

2001-06-25 Thread Kevin Altis
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

AW: Vedr: Problem with Output Redirection and ActivePython 2.1, build 211

2001-06-25 Thread Peter . Frey
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

Problem with Output Redirection and ActivePython 2.1, build 211

2001-06-25 Thread Peter . Frey
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

Windows NT4 installation problems

2001-06-25 Thread Sharriff . Aina
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

debugging wxPython programs

2001-06-25 Thread Paul Casteels
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