title: passing variables to a python script file using abaqus python 2.6.2
body: <p>I am trying to pass a variable to a <code>abaqus</code> script file(.psf) through command line. The command line call is made every time  another script is executed and has different value for the variable in each call. Can I have help in this regard on the command syntax to be used. I tried <code>os.system</code> and <code>subprocess.Popen</code>, both are giving some sort of errors.</p>
  <p>In my main script(.py file) it calls .psf</p>
  <pre><code>Xa=150000
  abaqusCall = 'abaqus script=tt_Par.psf'
  runCommand = 'cmd.exe /c ' + abaqusCall
  process = subprocess.Popen(runCommand, cwd=workDir, args=Xa)
  </code></pre>
  <p>and in .psf</p>
  <p>it accepts variables in this format..</p>
  <pre><code>import sys,os
  
  for item in sys.argv
      x1 = sys.argv[0]
      x2 = sys.argv[1]
      print x1,x2
  </code></pre>
  <p>Could anyone give directions in this regard?</p>