``` def src_to_module(src): execute_path = os.getcwd() relative = src.replace(execute_path, "") path = Path(relative).parent fragments = str(path).split(os.sep) return ".".join(fragments) ```