My .py file got big enough that it was time to split it into multiple files. Originally, it would have some bpy.props, then later functions could access that with
lanes = bpy.props.IntProperty( name = "Lanes", default = 2, description = "Number of lanes" ) def execute (self, context): def someFunction(): print(self.lanes)
someFunction is now so big enough I split it into a separate file, imported with importlib.reload. init.py runs and can import that function and run it, but messes up when trying to refer to self again:
curveSetup() missing 1 required positional argument: 'self'
The script previously found self because it was one giant file. how do I access self again now they're in different files?