Skip to content

Issue accessing globals() from library #136

@ehrenfeu

Description

@ehrenfeu

Unfortunately the save_script_parameters() function introduced in #111 doesn't work as intended as the globals() call returns the dictionary of the current module. Inside a function, this is the module where it is defined, not the module from which it is called as described in the built-in functions API docs for Python 2.7.

Long story short, this call is getting the global symbol table of the imcflibs namespace instead of the one from the caller (which is what we'd need for the org.scijava.script.ScriptModule part:

module = globals().get("org.scijava.script.ScriptModule")

After discussing with @rohangirishrao we decided to remove the function from current devel in order to not have it block the next release and see what "the best solution"™️ could look like in a new branch.

Metadata

Metadata

Labels

bugSomething isn't workingnext-coding-sessionLook into during the next CS.

Type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions