title: Command line solution for changing paths
body: <p>If I run a Python program in the same folder that contains the Python program, then it is working well</p>
  <pre><code>python &lt;file_name&gt;.py
  </code></pre>
  <p>But, I am running a python program from a directory in which the Python file is not present. Let us see the following command for example</p>
  <pre><code>python ../../&lt;file_name&gt;.py
  </code></pre>
  <p>I am facing an issue due to the directory paths that are present in <code>&lt;file_name&gt;.py</code>.</p>
  <p>Do I need to change every path that is present in <code>&lt;file_name&gt;.py</code> manually or is there an alternative to do it from the command line only?</p>