as the title states, I know runpy can run a module's code w/o importing it,
but what I'm trying to do is send the module object to a... function supplied by my interface which is directly called by the module.
what I'm talking about is:
my interface provides these functions for it's scripts:
run_module( UGE_Script, init_globals=COMMON.dict, )# run_name=??)
and those functions should be the first things called in the script.
what those functions do is set a global collection with the:
- python module object of the imported script
- filetypes the script works with
- UGE-libraries used by the script
in a UGE-Script, it's best to avoid using the import statement as everything needed is supplied for handling file data.
UGE, or currently, UMC has it's own model, file, and data interfaces, and you're not expected to know how to work them via the backend, so a very simple frontend is supplied which can do more than current python extensions up to the point of importing and exporting 3D models.