-1

I am calling a python file result.py from a script file result.sh. Both the files are present in different folders. How can I provide an absolute path?

My result.sh code:

if [[ $1 = "Census" ]]; then
    python -u result.py --model_name mlp --dataset census

Location of python file: C:/Users/ABC/Desktop/Python/result.py

Location of script file: F:/Script/result.sh

RasK
  • 51
  • 6

1 Answers1

1

Simply put the absolute path in the script:

if [[ $1 = "Census" ]]; then
    python -u C:/Users/ABC/Desktop/Python/result.py \
        --model_name mlp \
        --dataset census \
Barmar
  • 741,623
  • 53
  • 500
  • 612