Fetch dependancies from different directory python
<p>I have been working on developing a certain piece of code and now it works just fine.. and needed to be deployed in the production enviornment.
But the code is not production ready yet.. Earlier I had all the files in the same directory and I was calling all the libraries I built to one unit test I wrote.
But now I have been asked to clean them out.
So earlier my directory sturcture was like  (if there was any structure)</p>

<pre><code> .../project_name/allthecode.py
</code></pre>

<p>So now This is what my new directory structure looks like.</p>

<pre><code>.../project_name/bin/unit_test.py
.../project_name/lib/native/all_the_libraries_i_developed.py's   
.../project_name/lib/third/all_the_third_parties_code.py's
</code></pre>

<p>Now.. how do I call the libraries in native and third to the bin/unit_test.py</p>

<p>Also, I dont want to hardcode this path.. as it will be later deployed in production environment..qa environment..so I am looking somethin glike.. </p>

<pre><code>at unit_test.py... go up one level (.../project_name)
now go down one level  (..../project_name/lib)
From ths point move down to native and third...
</code></pre>

<p>So more like a relative search of directory?
How do i get this in python
Thanks</p>
