I'm writing an ableton python script. This one writes the string to the file:
class LaunchControl(ControlSurface):
def __init__(self, c_instance):
super(LaunchControl, self).__init__(c_instance)
f = open("d:\members2.txt", "w")
f.write('START ok\n\n')
f.flush()
But this one does not and I don't see any error in the log. The only difference is the last line:
class LaunchControl(ControlSurface):
def __init__(self, c_instance):
super(LaunchControl, self).__init__(c_instance)
f = open("d:\members2.txt", "w")
f.write('START ok\n\n')
f.flush()
self.f = f
I want to use f in other functions of LaunchControl class