How to add multiple files to py2app?

Posted by Niek de Klein on Stack Overflow See other posts from Stack Overflow or by Niek de Klein
Published on 2012-11-30T23:20:04Z Indexed on 2012/12/04 23:04 UTC
Read the original article Hit count: 258

Filed under:
|
|
|

I have a python script which makes a GUI. When a button 'Run' is pressed in this GUI it runs a function from an imported package (which I made) like this

from predictmiP import predictor
class MiPFrame(wx.Frame):
    [...]
    def runmiP(self, event):
         predictor.runPrediction(self.uploadProtInterestField.GetValue(), self.uploadAllProteinsField.GetValue(), self.uploadPfamTextField.GetValue(), \
                   self.edit_eval_all.Value, self.edit_eval_small.Value, self.saveOutputField)

When I run the GUI directly from python it all works well and the program writes an output file. However, when I make it into an app, the GUI starts but when I press the button nothing happens. predictmiP does get included in build/bdist.macosx-10.3-fat/python2.7-standalone/app/collect/, like all the other imports I'm using (although it is empty, but that's the same as all the other imports I have).

How can I get multiple python files, or an imported package to work with py2app?

© Stack Overflow or respective owner

Related posts about python

Related posts about import