subprocess terminate help

Do Re Mi chel La Si Do enleverlesO.OmcO at OmclaveauO.com
Wed Nov 16 17:39:18 EST 2005


Hi!

Self-destruction of a script:

    import os
    os.popen('TASKKILL /PID '+str(os.getpid())+' /F')

(only in windows XP or 2K)


@-salutations

Michel Claveau






More information about the Python-list mailing list