I want to use some math functions in a gDesklets applet, however, I can't import math in the script. I have googled but got nothing, except this similar post, yet unanswered.
I've tried to import at run time, but __import__ doesn't work:
name '__import__' is not defined
/usr/lib/gdesklets/Displays/Clock/clock.display
1
2 #
> 3 math = __import__('math')
and neither could eval() work:
name 'eval' is not defined
/usr/lib/gdesklets/Displays/Clock/clock.display
1
2 #
> 3 math = eval('__import__("math")')