title: How to pass arguments from one python script on the server to another?
body: <p>I have 2 Python scripts on my server. I want to run the second one, <strong><code>SendMail.py</code></strong>, from <strong><code>MainScript.py</code></strong>, and I need to pass 2 arguments to it.</p>
  
  <p>I want to call <code>send_mail</code> function in <code>MainScript.py</code>:</p>
  
  <pre><code>def send_mail(subject, body):
      # call SendMail.py with and pass the subject &amp; body arguments
  </code></pre>
  
  <p>so it will run <code>SendMail.py</code>.</p>
  
  <p>How can I run the other script while passing the arguments? Is it possible to do without importing the main function from <code>SendMail.py</code> into <code>MainScript.py</code>? How do I grab the arguments in <code>SendMail.py</code>?</p>