> except win32serviceutil.error:
> print "Service already running!"
use win32service.error here. You will need to import win32service first.
Mark.
___
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/lis
Title: Nachricht
Maybe
you should configure your ASP application not to run integrated with IIS (that
means running in the same address space). If in the same address space the app
goes wild it might hurt also the server code. On IIS 4 this costs some
performance, because of out-of-pr
Ok, that worked. Thanks! I've played around with the first example, but I
still can't get it to work. Here is my code snippet and the error message:
import win32serviceutil
def start_service(service, machine):
"""Start a service"""
try:
win32serviceutil.StartService(service, m
-Original Message-
From: Mark Hammond [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 3:55 PM
To: Robin Siebler; [EMAIL PROTECTED]
Subject: RE: PythonWin problems
> 1. Pressing Ctrl+Shift+C does not check the syntax but File|Check does.
>>If you have the interactive window do
> def execute(testpath):
>
> try:
> win32file.CopyFile(os.path.join(testpath, 'test.log'),
> os.path.join('d:\\', 'iTest', 'iDir Simple Test', 'OutputData',
> 'test.log'),
> 1)
> except:
> return 0 #File already exists!
This works for me.
>>> try:
... win32file.CopyF
> 1. Pressing Ctrl+Shift+C does not check the syntax but File|Check does.
If you have the interactive window docked and with focus, it will not work.
Apart from that, it works for me.
> 2. PythonWin does not 'remember' that I maximized it and all of the MDI
> windows the last time (and everyti
I tried that, but I still get an error. Here is another example:
def execute(testpath):
try:
win32file.CopyFile(os.path.join(testpath, 'test.log'),
os.path.join('d:\\', 'iTest', 'iDir Simple Test', 'OutputData', 'test.log'),
1)
except:
return 0 #File already exists!
I am having the following problems with PythonWin on Win2k and NT4. Please
let me know if these are know issues, if there are workarounds, or if I am
posting to the wrong place.
1. Pressing Ctrl+Shift+C does not check the syntax but File|Check does.
2. PythonWin does not 'remember' that I maxi
Title: Active X Python kills IIS!?!
hi all
I installed python on a couple of development web servers a while ago and started fooling around with using python in ASP
this morning when I cam in, both servers were failing to process ASP scripts written in either python OR VBScript, a
On Wed, 27 Jun 2001, Montagne, Michael wrote:
> I've got Mandrake 8.0 and ActivePython installed beautifully. But when I
> run "python pyppm" to install "egenix-mx-base" the install hangs at the
> prompt "installing egenix-mx-base". Perhaps I'm doing something wrong since
> i don't see any oth
I've got Mandrake 8.0 and ActivePython installed beautifully. But when I
run "python pyppm" to install "egenix-mx-base" the install hangs at the
prompt "installing egenix-mx-base". Perhaps I'm doing something wrong since
i don't see any other references to this. What is the proper way to insta
> On my machine if I type the following two lines at interactive
> prompt, PythonWin
> locks up and must be terminated. When I run from DOS prompt it
> works properly.
> Is it just my machine or does it act this way for others?
Without even trying it, I can guarantee is locks up for everyone :(
On my machine if I type the following two lines at interactive prompt, PythonWin
locks up and must be terminated. When I run from DOS prompt it works properly.
Is it just my machine or does it act this way for others?
>>> import getpass
>>> pw=getpass.getpass("Input Password? ")
-Larry
__
13 matches
Mail list logo