(fullpath)
return module
Import a file with full path specification. Allows one to
    import from anywhere, something __import__ does not do.
Import a file with full path specification. Allows one to
    import from anywhere, something __import__ does not do.
Import a file with full path specification . Allows one to import from anywhere something __import__ does not do .
def import_path(fullpath):
    """
    Import a file with full path specification. Allows one to
    import from anywhere, something __import__ does not do.
    """
    path, filename = os.path.split(fullpath)
    filename, ext = os.path.splitext(filename)
    sys.path.insert(0, path)
    module = __import__(filename)
    reload(module)  # Might be out of date
    del sys.path[0]
    return module
def import_path ( fullpath ) : path , filename = os . path . split ( fullpath ) filename , ext = os . path . splitext ( filename ) sys . path . insert ( 0 , path ) module = __import__ ( filename ) reload ( module ) # Might be out of date del sys . path [ 0 ] return module