I have two files at the same location.
The first file is sh file and other is python file.
a.sh file
#!/bin/bash
a=1
b=1
if [[ $a -eq $b ]]
then
call the python file function named callable with command line argument as value of a
# python b.py $a
fi
b.py file
This file has many functions but I need to call specifically function callable:
arg = sys.argv[1]
def callable():
print(arg)
How can I do that in script?