title: How to get pyinstaller to include imported .py files
body: <p>I have a GUI script, called ui.py, created in PySide that uses functions from another script, called DataFunctions.py. When I run the ui.py file in python it all works perfectly, and when I run the ui.exe file it will all work fine apart from the button that runs the DataFunctions.py file, which does nothing.
  In my ui.py file I am importing DataFunctions.py with:</p>
  
  <pre><code>import DataFunctions.py
  
  buttonAction = DataFunctions.writeFile(filename, data)
  </code></pre>
  
  <p>I am using the following code to create the .exe:</p>
  
  <pre><code>pyinstaller ui.py -w -F
  </code></pre>
  
  <p>Am I importing the DataFunctions.py file in a way that pyinstaller doesn't support?</p>