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
  How to send data from a python application to an external application aditya_rajiv 1 585 Jul-26-2021, 06:00 AM
Last Post: ndc85430
  Regex: a string does not starts and ends with the same character Melcu54 5 872 Jul-04-2021, 07:51 PM
Last Post: Melcu54
  Running script on multiple files Afrodizzyjack 1 1,056 May-14-2021, 10:49 PM
Last Post: Yoriz
  threadlocals are garbage collected before thread ends akv1597 0 713 Mar-09-2021, 12:13 PM
Last Post: akv1597
  Error when running script on startup in Linux NoahTheNerd 0 777 Mar-07-2021, 04:54 PM
Last Post: NoahTheNerd
  python application and credentials safety concern aster 4 1,444 Mar-06-2021, 06:51 PM
Last Post: snippsat
  Running a few lines of code as soon as my timer ends nethatar 3 917 Feb-26-2021, 01:02 PM
Last Post: jefsummers
  Refresh data in python script while running in Terminal frankenchrist 4 1,873 Feb-03-2021, 09:54 AM
Last Post: Larz60+
  [SOLVED] Requiring help running an old Python script (non Python savvy user) Miletkir 13 2,185 Jan-16-2021, 10:20 PM
Last Post: Miletkir
  Writing to file ends incorrectly project_science 4 1,228 Jan-06-2021, 06:39 PM
Last Post: bowlofred

Forum Jump:

User Panel Messages

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