title: how to import in the pyc file
body: <p>The question: i can import some self made module in PY file, but when i transfer into the PYC file, the import error came into my eyes.</p>
  
  <p>What i have tried: i have already append the module path in the system path and add the <strong>init</strong> file, but it can't work actually.</p>
  
  <p>Please give me some help or advice, if you have once met this question</p>
  
  <p>the files are in the following stage</p>
  
  <pre><code>test/
      f1.py
      f3.py
      tt/
          f2.py
  </code></pre>
  
  <p>the f1 file:</p>
  
  <pre><code>def f1(x):
      return x
  </code></pre>
  
  <p>the f2 file:</p>
  
  <pre><code>def f2(y):
      return y
  </code></pre>
  
  <p>the f3 file:</p>
  
  <pre><code> import sys
      #sys.path.append('C:\\Users\\Kwoks\\Desktop\\test\\tt')
      #sys.path.append('C:\\Users\\Kwoks\\Desktop\\test')
      sys.path.append('../')
  
      from f1 import *
      from tt.f2 import *
  
      def f3(x,y):
          return f1(x)+f2(y)
  
      if  __name__ =='__main__':
          x = 3
          y = 3
          res = f3(x,y)
          print(res)
          print(sys.path[-1])
  </code></pre>
  
  <p>it is similar structure with my working project, i am so sorry that i can't put out my working code for the sake of my company, and i sincerely sorry for make any of you confused.</p>