Hi,
Is there a way in python to check if something is validly defined information?
Generally, I work using the modular python in RifE. One of the python files that I'm considering editing has not been exposed to modular callback within RifE. The original python file would need to be replaced with mine by someone considering using my module.
However, I don't want someone to have the hassle of having to keep manually switching a python file whenever they enable/disable the module. What I'd like to include is a check to see if one of the module's xml defined features is defined. If it isn't, the module isn't installed and my addition in the python file should be ignored. If the modular xml is there to support it, then the added python should work fine.
Is there someway to check this?
Is there a way in python to check if something is validly defined information?
Generally, I work using the modular python in RifE. One of the python files that I'm considering editing has not been exposed to modular callback within RifE. The original python file would need to be replaced with mine by someone considering using my module.
However, I don't want someone to have the hassle of having to keep manually switching a python file whenever they enable/disable the module. What I'd like to include is a check to see if one of the module's xml defined features is defined. If it isn't, the module isn't installed and my addition in the python file should be ignored. If the modular xml is there to support it, then the added python should work fine.
Is there someway to check this?