title: How do you call a python file that requires a command line argument from within another python file?
body: <p>For example, I have two python files, <code>'test1.py'</code> and <code>'test2.py'</code>. I want to <code>import test2</code> into <code>test1</code>, so that when I run <code>test1</code>, it also runs <code>test2</code>. </p>
  
  <p>However, in order to run properly, <code>test2</code> requires an input argument. Normally when I run <code>test2</code> from outside of <code>test1</code>, I just type the argument after the file call in the <code>command line</code>. How do I accomplish this when calling <code>test2</code> from within <code>test1</code>?</p>