0

I am trying to script the Linux instructions in python. I am not able to script the following in python.

source /usr/home/modelling.rc -m model

I tried subprocess.call(['/usr/home/modelling.rc', "-m", "model"]) ***E: You can't execute me directly, you must source me! source /usr/home/modelling.rc -m model

I also found that execfile() does the same job as source. But without giving the arguments, I am not able to run the file. Is there a way to source the file with arguments in python. Please help!

Thanks

user3798648
  • 33
  • 1
  • 4

0 Answers0