title: executing the python in another python file with arguments as path
body: <p>I am relatively new to python. I am trying to call a python file <code>"plotting.py"</code> in another file <code>"main.py"</code>. To execute the <code>"plotting.py"</code> file the path should also be given as argument.</p>
  
  <p>So in the <code>"main.py"</code> I have executed so</p>
  
  <p><code>z='Stream 20170424 15_20_25_856'
  os.system('python plotting.py '+z)</code></p>
  
  <p>Where variable <code>z</code> is the name of the folder and this name, in general, contains the whitespaces and when I execute the <code>"main.py"</code> it gives an error. But when I replace the whitespaces in the folder name with <code>_</code> and change the variable <code>z</code> accordingly and execute the <code>"main.py"</code> it executes without an error. But I cannot change the name of the folder every time. So is there any possibility to execute the code changing the folder name and giving the variable <code>z</code> has mentioned?</p>