I have written a wxPython GUI which assigns some variables upon a button click.
def OnGo(self, event):
inputdatadirectory = self.txtbx1.GetValue()
outputsavedirectory = self.txtbx2.GetValue()
mcadata = self.txtbx3.GetValue()
current_dir = os.getcwd()
execfile(current_dir+"\\aEDXD.py")
I then run execfile, and the executed file imports and runs a class from another file.
How can I make the variables I've defined through my GUI available to the imported class?