Read the statement by Michael Teeuw here.
Except a module in getModules()
-
@yours.mukul enumerate will iterate over the array and will execute the function you specify for each module in the array
-
@strawberry-3.141 Well your code didn’t hide any of modules
-
@yours.mukul do you get any errors?
-
@yours.mukul
In.exceptModule(someModule)
,someModule
should be an instance of module object. It means you should get the object first before enumerating.
Usually, you can get module object instance with notification. In other way, you should enumerate all modules first, filter them by name(or any other condition), after then you can use those objects for.exceptModule()
as parameter.So I think you’d better examine other modules how they handle this. Not so difficult.
-
@strawberry-3.141 No there were no errors but I didn’t hide my modules