title: Using Pydoc documentation module for whole project in Pycharm
body: <p>I know, that there are some cases with pydoc module, but none of them were helpful for me.</p>
  
  <p>First of all, structure of my project is following:  </p>
  
  <p>Model_folder  </p>
  
  <pre><code>folder_1
      subfolder_1
          python_file_1
          python_file_2
      subfolder_2
  folder_2
      subfolder_1
          python_file_1
          ...
          python_file_10
      subfolder_2
      subfolder_3
  folder_3
  ...
  folder_4
  ...
  </code></pre>
  
  <p>I create a simple batch file to run pydoc module in every folder in Model_Folder as following:  </p>
  
  <pre><code>for /r PATH %%a in (.) do (  
      pushd %%a  
      set PYTHONPATH =.
      python -m pydoc -w .\  
      popd
  )
  </code></pre>
  
  <p>The batch file is working, but I get an error, when it tries to evaluate one of the module:</p>
  
  <p><em>problem in folder_1.subfolder_1.python_file_1.html - No module named folder_2</em></p>
  
  <p>It is problem, to do pydoc documentation for module, in which we import something from other modules? Because I am importing some function from folder_2 in python_file_1 in folder_1.</p>