title: Maya - How to create python scripts with more than one file?
body: <p>It's my first post here, please understand that I'm a beginner and that I'm learning &quot;on-the-job&quot;.</p>
  <p>Can someone explain how can I import files from a different module in a Maya python script? I'm getting the following error:</p>
  <pre><code>Error: ImportError: file E:/.../bin/mainScript.py line 17: No module named tools
  </code></pre>
  <p>Here are my directories and codes:</p>
  <pre><code>Main_folder\
  |-- install.mel
  |-- ReadMeFirst.txt
  `-- bin\
      |-- __init__.py
      |-- mainScript.py
      |-- tools.py
      `-- presets\
          |-- bipedPreset.txt
          |-- quadrupedPreset.txt
          `-- [...] .txt
  </code></pre>
  <p>I'm trying to import <code>tools.py</code> in <code>mainScript.py</code></p>
  <h3>EDIT:</h3>
  <p>Ok, as it won't fit in a comment I edit this post to add precisions. I moved the 'Main_folder' on my Desktop and ran the script once again in Maya. It still doesn't work but I have a more complete error traceback. Here it is:</p>
  <pre><code># Error: Error in  maya.utils._guiExceptHook:
  #   File &quot;C:\Program Files\Autodesk\Maya2014\Python\lib\site-packages\maya\utils.py&quot;, line 332, in formatGuiException
  #     result = u'%s: file %s line %s: %s' % (exceptionType.__name__, file, line, exceptionMsg)
  # UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position 11: ordinal not in range(128)
  # 
  # Original exception was:
  # Traceback (most recent call last):
  #   File &quot;&lt;maya console&gt;&quot;, line 3, in &lt;module&gt;
  #   File &quot;C:/Users/UKDP/Desktop/Main_folder/bin/mainScript.py&quot;, line 17, in &lt;module&gt;
  #     from tools import ClassTest
  # ImportError: No module named tools # 
  </code></pre>