def load_file(filename):
    mod_name = '.'.join(os.path.basename(filename).split('.')[:-1])
    mod_path = os.path.dirname(filename)

    if mod_name in sys.modules:
        del sys.modules[mod_name]
    if mod_path not in set(sys.modules.keys()):
        sys.path.insert(0, mod_path)
    return ScentModule(__import__(mod_name, g, g), filename)
Reconstructs the original attributes string according to the dialect.
dataset/ETHPy150Open jeffh/sniffer/sniffer/scent_picker.py/load_file--crossover with--dataset/ETHPy150Open daler/gffutils/gffutils/parser.py/_reconstruct