ImportError: Module not found but sys.path is showing the file resides under the path
Question: When I print sys.path in my code I get the following as output:

['C:\Netra_Step_2015\Tests\SVTestcases',
'C:\Netra_Step_2015\Tests\SVTestcases\TC-Regression',
'C:\Python27\python27.zip', 'C:\Python27\DLLs', 'C:\Python27\lib', etc.]

Now, when I write "import testCaseBase as TCB" where testcaseBase.py is in
this path:

C:\Netra_Step_2015\Tests\SVTestcases\Common\shared

I get an error: "**ImportError: No module named testCaseBase"**

My code is in C:\Netra_Step_2015\Tests\SVTestcases\TC-
Regression\regression.py. My code goes ahead with compilation, but
testcaseBase.py which is residing in a parallel directory fails to compile.

What might be the reason?


Answer: put

**C:\Netra_Step_2015\Tests\SVTestcases\Common\shared**

in your PYTHONPATH env

