I am trying to run a python (test.py
) file in Colab. The file needs inputting some parameters, e.g., "--epoch", "--class_file". What I did is:
!python test.py "--epoch" 100 "--class_file" class_file
#class_file is a path string
After argument parsing, the class_file
is not interpreted as the intended path string, but instead a string like class file = "class_file"
. How did that happen?