How do you import a specified file into python 2.5?

Tuesday, July 8, 2014

In python, I have an input asking for a file to be imported, but it's response is that the "py" module isn't found. My main code is as follows:

package_to_be_loaded=raw_input("Type package to be loaded: ")
import package

If you were to type TXTVIEWER into the input, it would import the file "", and take the function "run()" from it. My code in "" is as follows:

def run():

It's not working!