title: How do I pass a c# variable to a python script from windows form application
body: <p>I have successfully called a python script from a button click in my windows form application written in c# with the following code:</p>
  
  <pre><code>private void login_Click(object sender, EventArgs e)
      {
          System.Diagnostics.Process.Start("C:\\Python27\\Scripts\\path\\file.py");
      }
  </code></pre>
  
  <p>I would now like to pass a variable to the python script. I have tried passing it as an argument to no avail (works in php like this):</p>
  
  <pre><code>    private void login_Click(object sender, EventArgs e)
      {
          System.Diagnostics.Process.Start("C:\\Python27\\Scripts\\path\\file.py myVariable");
      }
  </code></pre>
  
  <p>I receive no errors in the visual studio compiler with this code, but when i click the button to initiate the python script I receive an error that says "Win32 exception was unhandled - The system cannot find the file specified"</p>
  
  <p>I have also tried this to no avail - <a href="https://stackoverflow.com/questions/11779143/run-a-python-script-from-c-sharp">How do I run a Python script from C#?</a></p>