pythonteamcity-5.1

Python : get all exe files in current directory and run them?


First of all this is not homework, I'm in a desperate need for a script that will do the following, my problem is, I've never had to deal with python before so I barely know how to use it - and I need it to launch unit tests in TeamCity via a commandline build runner

What I need exactly is :

a *.bat file that will run the script

a python script that will :

Best regards


Solution

  • import glob, os
    def solution():
        for fn in glob.glob("*_text.exe"):
            os.startfile(fn)