Home > other >  How to add an argument to a function in a python .bat file
How to add an argument to a function in a python .bat file

Time:11-06

I have a file with a function and a file that calls the functions. Finally, I run .bat I don't know how I can add an argument when calling the .bat file. So that the argument was added to the function as below.

file_with_func.py

def some_func(val):
    print(val)

run_bat.py

from bin.file_with_func import some_func

some_func(val)

myBat.bat

set basePath=           
  • Related