Python ImportError: No module named 'path'
<pre><code>''' Data class'''

import os.path
from random import Random

class TestData(object, Random):

    def FetchDataFromFile(self, filename):
        """ Open the file as read only """
        myfile = open(os.path.join(os.getcwd(),filename), 'r')
        """ read the information in the file """
        lines = myfile.read()
        ''' Remove the header as this will not be used '''
        header = lines[0] 
        lines.remove(header)
        return lines
</code></pre>

<p>I am getting:</p>

<blockquote>
  <p>ImportError: No module named path</p>
  
  <p>File "<strong>pyclasspath</strong>/Lib/Testdata.py", line 2, in </p>
</blockquote>

<p>os.path is working in all other classes in my project. Can someone point me what mistake i am doing?</p>

<p>I moved this file from one directory to another. Apart from it, there is no difference between this class and other classes. </p>
