Message366160
I'm trying to import custom scripts that expect the presence of certain variables in the global namespace.
It seems `__import__('script', globals=dict(foo='bar'))` doesn't have the expected effect of injecting "foo" into the namespace and making it accessible to the script being loaded.
Is this a bug in `__import__` or am I missing something ? If the behaviour is expected, how can I achieve the desired behaviour ? |
|
Date |
User |
Action |
Args |
2020-04-10 22:33:48 | stefan | set | recipients:
+ stefan |
2020-04-10 22:33:48 | stefan | set | messageid: <1586558028.61.0.331520667517.issue40249@roundup.psfhosted.org> |
2020-04-10 22:33:48 | stefan | link | issue40249 messages |
2020-04-10 22:33:48 | stefan | create | |
|