execute and import python in python shell

import

1
>>>import moduleName

from

1
>>>from moduleName import function/*

build in command

1
2
>>>exec(open('filename.py').read())
>>>execfile('filename.py')

execute and import python in python shell
https://rug.al/2015/2015-01-16-execute-and-import-python-in-python-shell/
Author
Rugal Bernstein
Posted on
January 16, 2015
Licensed under