Scripts ignore variables declared in 'module' scope

That all sounds fantastic. The shared section will also be very useful.

Carl, would it be possible to make it so that we can create packages at the root level from within Ignition, rather than having to create an SDK Module and import them externally?

What I mean is being able to just do ‘import dc’, rather than putting it under app and doing ‘from app import dc’. Being able to put code in a package would also be very helpful (using some sort of init system- possibly with a different name unless it works the same as normal Python).

Thanks very much.

Possibly. I’ll keep it in mind.

[quote=“Carl.Gould”]We hope to address this in 7.7

What we’ll probably do is start phasing out the existing “app” scripts in favor of a new style of script modules that will have correct scoping and whose scripts will be individually locked. We also hope to introduce a “shared” script environment that would be global across all projects.[/quote]

:smiley: :prayer: :thumb_left: :thumb_right: