title: How to run python script in command line
body: <p>I want to run a python script which is located in &quot;path=/home/user/code&quot; in another python code by os.system, in linux. I run the following code and it runs well:</p>
  <pre><code>os.system(&quot;cd &quot;+path+ &quot;;&quot; + &quot;./update.py&quot;)
  </code></pre>
  <p>But I want to run the script without changing the current directory. So when I run the following code:</p>
  <pre><code>os.system(&quot;.&quot;+path + &quot;/update.py&quot;)
  </code></pre>
  <p>I get an error that says: &quot;./home/user/code/update.py not found&quot;</p>
  <p>How can I solve it?</p>