user_script_load(... , module_name="string_name") to say which name to use in globals ?
Via @papillon and @sebastien.petitdemange: ID11 is using export_global=True as default argument to user_script_load. Can we get an option where we give the name for the namespace to be created/appended in globals that has a sensible default?
user_script_load( "myscans.py", export_global_name="user" )
e.g. merge into globals()["user"]
and run scripts as user.collect_the_data
.
When we do user_script_load("myscript.py)"
without export_global=True the error message is incomprehensible, it prints a namespace.