Python Forum
Keep Application running after Python script ends
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keep Application running after Python script ends
#1
I have a program that creates label templates in Microsoft Word and I would like the created word document to remain open after the code runs, but it keeps getting shutdown during the python cleanup. How can I exclude Word from the cleanup?

import os, os.path
import sys

class test():
    
    def start_Word():
        os.startfile('WordFile')
        test.end()

    @staticmethod
    def end():
        sys.exit

test.start_Word()
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  No Internet connection when running a Python script basil_555 8 442 Mar-11-2024, 11:02 AM
Last Post: snippsat
Question Running Python script through Task Scheduler? Winfried 8 335 Mar-10-2024, 07:24 PM
Last Post: Winfried
  Help Running Python Script in Mac OS emojistickers 0 306 Nov-20-2023, 01:58 PM
Last Post: emojistickers
  Trying to make a board with turtle, nothing happens when running script Quascia 3 608 Nov-01-2023, 03:11 PM
Last Post: deanhystad
  How do I properly implement restarting a multithreaded python application? MrFentazis 1 587 Jul-17-2023, 09:10 PM
Last Post: JamesSmith
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,008 Jun-29-2023, 11:57 AM
Last Post: gologica
  Python script running under windows over nssm.exe JaroslavZ 0 671 May-12-2023, 09:22 AM
Last Post: JaroslavZ
  Running script with subprocess in another directory paul18fr 1 3,480 Jan-20-2023, 02:33 PM
Last Post: paul18fr
  pywin32: Outlook connection ends with 'operation aborted' on one machine tstone 0 2,325 May-03-2022, 04:29 AM
Last Post: tstone
  Python running only in application Mawixy 2 1,090 Apr-19-2022, 11:38 AM
Last Post: Mawixy

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020