Is there a tool in python to rewrite some code which imports things such that it no longer has to import anything?
Take a library that draws a box called box.py
def box(text='Hello, World!')
draw the box magic
return
Now in another program (we'll call it warning.py) it says:
from box import box
box('Warning, water found in hard drive')
Is there a tool that I can use that will see it importing the box function (or a class for that matter) from box and insert that function (or class, or even variable definitions) into the warning.py script removing the import line (thus making it more portable)?
With thanks, Narnie