Click here to Skip to main content
15,502,574 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a file watcher in python but there is one in built function written in VB6 which i need to call in this python program. Could you please help if this is possible and if so provide an example for same. In below code INI_IO is the one i am trying to call

What I have tried:

def connectMain():

    AppPath = INI_IO("GLOBAL", "AppPath", App.Path, True)
    if AppPath == "":
        AppPath=""

    JobTyp = [Command if Command.isnumeric() else 0]
    AktDate = Now

    server = ''
    Driver = ''
    Database = ''
    uid= ''
    pwd = ''
    connection = pyodbc.connect("Driver={   };"
                                "Server = ;"
                                "Database = ;"
                                "uid = ;"
                                "pwd = ;")

    print("S", "Start", "JobTyp = " + JobTyp) 
Posted
Updated 1-Oct-21 1:26am

1 solution

You can use one of the Process Management functions. See os — Miscellaneous operating system interfaces — Python 3.9.7 documentation[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900