Accessing com.inductiveautomation.ignition packages in Python

Let me elaborate a bit:

The import behavior you were expecting corresponds to java’s import something.something.*;. But in java, an import is really just syntactical sugar for programmer convenience. A java programmer can always spell out full class names without any import statement.

Python/jython doesn’t work this way. In python/jython, import is a fundamental operation that makes other packages available within the scope, optionally removing a package prefix or renaming the object into the new scope.

2 Likes