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
  Python Calculator Application MemeStealer 7 45,447 Apr-17-2025, 07:02 PM
Last Post: AndreyAD
  Running script from remote to server invisiblemind 4 770 Mar-28-2025, 07:57 AM
Last Post: buran
  Detect if another copy of a script is running from within the script gw1500se 4 1,163 Jan-31-2025, 11:30 PM
Last Post: Skaperen
  pass arguments from bat file to pyhon script from application absolut 2 1,208 Jan-13-2025, 11:05 AM
Last Post: DeaD_EyE
  No Internet connection when running a Python script basil_555 8 3,400 Mar-11-2024, 11:02 AM
Last Post: snippsat
Question Running Python script through Task Scheduler? Winfried 8 7,142 Mar-10-2024, 07:24 PM
Last Post: Winfried
  Help Running Python Script in Mac OS emojistickers 0 973 Nov-20-2023, 01:58 PM
Last Post: emojistickers
  Trying to make a board with turtle, nothing happens when running script Quascia 3 1,803 Nov-01-2023, 03:11 PM
Last Post: deanhystad
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 8,249 Jun-29-2023, 11:57 AM
Last Post: gologica
  Python script running under windows over nssm.exe JaroslavZ 0 1,828 May-12-2023, 09:22 AM
Last Post: JaroslavZ

Forum Jump:

User Panel Messages

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